Skip to content

docker-compose fails reporting "Duplicate bind mount /var/lib/mysql" #1785

Closed

Description

@beeblook

"docker-compose up" fails reporting "Duplicate bind mount /var/lib/mysql"
while trying to mount "/var/lib/mysql" as host volume for mysql or percona image.

$ docker-compose up
Removing db_db_1...
Recreating ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_ce40d9fe7e_db_db_1...
Duplicate bind mount /var/lib/mysql

docker-compose.yml

db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
-./data/:/var/lib/mysql/

Running on OSX 10.9.5 with Boot2Docker-cli version: v1.7.1 (Git commit: 8fdc6f5),
Docker version 1.7.1, build 786b29d, docker-compose version: 1.3.3.

Is there any way to fix this issue?

Activity

  1. aanand commented on Jul 29, 2015

    @aanand

    Reproduced locally. Looks like a deduping issue with trailing slashes in paths. Working on a fix.

  2. aanand commented on Jul 29, 2015

    @aanand

    Fixed in #1787.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions