-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using volumes does not work as explained in docs. This breaks projects like fig. #419
Comments
This shouldn't be an issue on < 1.4 |
Are you sure? , In my example, Any way, seems clear that API does not work as stated on docs, at least with docker v1.4 |
I'm writing some tests for this right now on the docker side. |
Yes, I agree, this is what happens in my test. Confirmed, only happens in docker >=1.4 , I have modified my issue description, sorry. |
I'm going to work on a fix on the Docker side since this was an unexpected breaking change. |
It sounds like it's actually been removed entirely, not just deprecated |
No, just deprecated. The issue is with the volume initialization. |
@cpuguy83 awesome, thanks! |
Issue is detailed here: moby/moby#9628 |
And it's actually not deprecated, this was bad information. |
+1 |
this issue also breaks ansible docker module ( |
In newer versions of docker (>= v1.4.0), docker-py does not bind-mount volumes.
If volume is specified in
volumes
parameter toc.create_container()
, then volume is created. But according to docs, whenbinds
parameter is specified toc.start()
, volume should be bind mounted.http://docker-py.readthedocs.org/en/latest/volumes/
But it seems that
start()
only binds volumes NOT specified onvolumes
parameter ofc.create_volumes()
.I think this is breaking projects like fig (can't mount volumes) or saltstack dockerio module:
docker/compose#622
Code example reproducing issue for me:
You can see as
/var/www
is correctly bind-mounted, but/mnt/test
is not. The difference is that/mnt/vol1
was not specified involumes
parameter toc.create_container()
Do you think is a docker-py issue with newer docker engine?
The text was updated successfully, but these errors were encountered: