docker / awesome-compose

Awesome Docker Compose samples

Home Page:https://docs.docker.com/compose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

luojiyin1987 opened this issue · comments

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.