I’m trying to migrate some containers to a new setup. Running into lots of problem, but in the meantime I want to get my device backups up and running.
When trying to deploy a container, I get the following error message.
Deployment error
failed to deploy a stack: Creating volume “resilio-sync-temp_config” with default driver Creating volume “resilio-sync-temp_downloads” with default driver Creating volume “resilio-sync-temp_sync” with default driver Creating resilio-sync-temp … e[1Ae[2K Creating resilio-sync-temp … e[31merrore[0m e[1B ERROR: for resilio-sync-temp Cannot start service resilio-sync-temp: error while mounting volume ‘/var/lib/docker/volumes/resilio-sync-temp_downloads/_data’: failed to mount local volume: mount :/Media/Backups/Resilio-temp:/var/lib/docker/volumes/resilio-sync-temp_downloads/_data, data: addr=172.16.101.100,nolock,soft: operation not permitted ERROR: for resilio-sync-temp Cannot start service resilio-sync-temp: error while mounting volume ‘/var/lib/docker/volumes/resilio-sync-temp_downloads/_data’: failed to mount local volume: mount :/Media/Backups/Resilio-temp:/var/lib/docker/volumes/resilio-sync-temp_downloads/_data, data: addr=172.16.101.100,nolock,soft: operation not permitted Encountered errors while bringing up the project. : exit status 1
My compose file is:
---
version: "3.2"
services:
resilio-sync-temp:
image: ghcr.io/linuxserver/resilio-sync:latest
container_name: resilio-sync-temp
environment:
- PUID=1000
- PGID=100
volumes:
- type: volume
source: config
target: /config
volume:
nocopy: true
- type: volume
source: downloads
target: /downloads
volume:
nocopy: true
- type: volume
source: sync
target: /sync
volume:
nocopy: true
ports:
- 8888:8888
- 55555:55555
restart: unless-stopped
volumes:
config:
driver_opts:
type: "nfs"
o: "addr=172.16.101.100,nolock,soft,rw"
device: ":/Config/resilio-temp"
downloads:
driver_opts:
type: "nfs"
o: "addr=172.16.101.100,nolock,soft,rw"
device: ":/Media/Backups/Resilio-temp"
sync:
driver_opts:
type: "nfs"
o: "addr=172.16.101.100,nolock,soft,rw"
device: ":/Media"
Pieced this compose file together from a few sources. Original is the linuxserver compose, then found an example online of the nfs volume mounting. They were different compose versions, 2.1 for the original, and 3.2 for the NFS example.