damalis/full-stack-nginx-wordpress-for-everyone-with-docker-compose

failed to mount local volume

Valley8140 opened this issue · 1 comments

I keep getting the below error message. I am assuming I am doing something wrong but I cannot work it out.

Error` response from daemon: error while mounting volume '/var/lib/docker/volumes/certbot-etc/_data': failed to mount local volume: mount /certbot:/var/lib/docker/volumes/certbot-etc/_data, flags: 0x1000: no such file or directory

Manual installation on Ubuntu 22.04.3 LTS using Docker version 24.0.7, build afdd53b

I think I might have worked it out. I changed the below command

docker volume create --driver local --opt type=none --opt device=${DIRECTORY_PATH}/certbot --opt o=bind certbot-etc

to

docker volume create --driver local --opt type=none --opt device=${PWD}/certbot --opt o=bind certbot-etc