docker / awesome-compose

Awesome Docker Compose samples
https://docs.docker.com/compose/
Creative Commons Zero v1.0 Universal
34.57k stars 6.64k forks source link

[fix] Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/traefik/dockerWork/workpress/wordpress #412

Open luojiyin1987 opened 9 months ago

luojiyin1987 commented 9 months ago

The error message you encountered is from the Docker daemon, and it indicates that you tried to mount a directory binding from the local filesystem into a Docker container, but the specified source path does not exist

I run mkdir -p /home/traefik/dockerWork/workpress/wordpress to solve it .

I see some doc . I set wordpress volumes to solve it.

volumes:
      - ./wordpress_data:/var/www/html

I hope it will help others.