I'm migrating services from my NAS to a new host and trying to mount volumes in Docker. I set up a Proxmox VM running Alpine Linux for Docker and currently mount everything with fstab. I learned that I can directly specify remote volumes in Docker, but I'm hitting a wall with permission denied errors. The error message I see is: `Failed to deploy a stack: compose up operation failed: Error response from daemon: error while mounting volume '...': permission denied`.
I manually mount the volumes in Alpine without issues, so I'm confident it's not a NAS permission error. I've attempted both NFS and SMB to no avail, both of which have the correct credentials and IP address. Here are the configurations I've tried for NFS and SMB, but nothing seems to work. Can anyone help me figure out what's going wrong?
4 Answers
Could you share the actual configurations for your NFS and SMB? It sounds like there might be a mismatch with user permissions between your NAS and Docker's setup. For SMB, check the options like `force user`, `force group`, and the create and directory masks; those have helped me before.
Did you change any settings after the first run? If so, try executing `docker compose down -v` followed by `docker compose up -d` or just restart the Docker service.
It's not just on the Alpine VM; I'm having the same issue on my desktop with Kubuntu. Both Docker and Docker Compose are installed from the official repos. Here are my system details: Docker version 28.3.3 and Compose v2.39.1. Could this be a version compatibility issue?
Just a heads-up, Alpine isn't the officially supported host OS for Docker. That said, many users do run it successfully. Ensure that both Docker Engine and Compose are up-to-date. If you're still stuck, post the output of `docker info` and `docker compose version`.

I just tried running those commands, but it still didn't help.