Invalid mount config for type "bind": bind source path does not exist

Hello Team,

I am getting the volume mount error while configuring the docker swarm.

Error : invalid mount config for type “bind”: bind source path does not exist:

image

how did you make sure that the path exist? Docker Swarm is for running containers on multiple machines not necessarily on the machine on which you are running the docker command. So first of all I wouldn’t use relative paths to make sure you are always referring to the path you wanted to.