Getting invalid mount config for type "bind": bind source path does not exist in docker Getting invalid mount config for type "bind": bind source path does not exist in docker docker docker

Getting invalid mount config for type "bind": bind source path does not exist in docker


This is clearly documented in Docker Swarm BIND MOUNTS

If you bind mount a host path into your service’s containers, the path must exist on every swarm node. The Docker swarm mode scheduler can schedule containers on any machine that meets resource availability requirements and satisfies all constraints and placement preferences you specify.

Unlike running a single container, the bind-mount host directory is not created if it doesn't exit. It must exist prior to running the container on a cluster node.