I am trying to map int a container an nfs volume created by another container, docker-compose.yml
version: '3.8'
services:
nfs:
image: erichough/nfs-server
restart: unless-stopped
volumes:
- ./data:/share/data0
environment:
- NFS_EXPORT_0='/share/data0 *(rw,no_subtree_check)'
proxy:
image: nginx
restart: unless-stopped
depends_on:
- nfs
ports:
- '80:80'
- '443:443'
volumes:
- share0:/mnt
volumes:
share0:
driver_opts:
type: "nfs"
o: "addr=nfs,nolock,soft,rw"
device: ":/share/data0"
Curretnly I am receiving this error:
Creating ehough_nfs_1 ... done
Creating ehough_proxy_1 ... error
ERROR: for ehough_proxy_1 Cannot create container for service proxy: error resolving passed in network volume address: lookup nfs on 127.0.0.53:53: read udp 127.0.0.1:48081->127.0.0.53:53: i/o timeout
ERROR: for proxy Cannot create container for service proxy: error resolving passed in network volume address: lookup nfs on 127.0.0.53:53: read udp 127.0.0.1:48081->127.0.0.53:53: i/o timeout
ERROR: Encountered errors while bringing up the project.
Any suggestion?
Thanks