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:

  • Creating docker images on successful TeamCity build
  • How will a Docker application with ubuntu as base image work on Windows?
  • Editing static resources in Docker with Spring Boot application
  • Running docker pull on windows 7 behind proxy
  • Docker virtual network interfaces are mandatory
  • Getting “netcoreapp1.0” is an unsupported framework during Docker build
  • 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?

  • How to override the default value of COMPOSE_HTTP_TIMEOUT with docker-compose commnad
  • Docker image running as unknown user ID can delete root files
  • Send request from one docker container to another
  • Docker for windows not working after install
  • Build and use docker image from docker-compose
  • Django migrations with Docker on AWS Elastic Beanstalk
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.