plugins-demo-2015 / demo

A demo of Weave and Flocker as official Docker plugins using compose and swarm
13 stars 4 forks source link

2nd time I run docker-compose I get duplicate bind mount #18

Open lukemarsden opened 9 years ago

lukemarsden commented 9 years ago

Just run docker-compose up, then hit ctrl+c, then up again:

vagrant@master:/vagrant/app$ docker-compose up
Starting new HTTP connection (1): localhost
Recreating app_web_1...
Creating app_web_1...
Recreating ef852d4bea_app_redis_1...
Creating app_redis_1...
500 Internal Server Error: Duplicate bind mount /data
errordeveloper commented 9 years ago

Yes, I have seen this also, not sure what it is.

binocarlos commented 9 years ago

I have also see this - never the first time the redis container is run however. I'm not sure if deleting the Redis container before starting the second one resolves this.

errordeveloper commented 9 years ago

Yeah, i also have seen a 'not found' error, which, IIRC, came after I tried docker rm -f redis.

lukemarsden commented 9 years ago

@errordeveloper through swarm?

lukemarsden commented 9 years ago

I think docker-compose stop && docker-compose rm is the solution here.