Docker complains that bind source path doesn't exist, but it DOES

I’m trying to start a mysql container with a host directory mounted. I’m running a single-node swarm in Docker for AWS. But I can’t mount a directory…

This is the section of the docker-compose file I’m using:

  • How to get remote access to a private docker-registry?
  • Copy docker volume to google compute engine instance
  • Mount a file in read/write mode for all in Docker
  • FTP into existing Docker Containers
  • How to run on vagrant with docker provider
  • Docker Compose: Allow images to access host resources (like postgresql)
  • mysql:
        image: mysql-custom
            - /mysql:/var/lib/mysql
            - "3307:3306"

    And this is the launch command I’m trying:

    docker stack deploy --compose-file docker-compose.yml stack12

    When I launch however, docker swarm rejects the image, saying “invalid mount config for type \”bind\”: bind source path does not exist”. However, /mysql is a valid directory, I can cd to it and everything, so why is docker saying it does not exist?

  • Does Jenkins Pipeline Plug-in support Docker Compose?
  • Why not “docker push” only publish the Dockerfile?
  • Docker unable to install numpy, scipy, or gensim
  • docker swarm with Centos servers
  • Docker user namespacing map user in container to host
  • Docker save only non public layers
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.