Uh oh!
There was an error while loading. Please reload this page.
Fix volume binds de-duplication - #1544
Conversation
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
aanand
commented
Jun 12, 2015
The docker-py fix is now out in 1.2.3-rc1, so I've updated |
dnephin
commented
Jun 14, 2015
LGTM |
Fix volume binds de-duplication
pikeas
commented
Jun 15, 2015
Running compose from master, run is currently broken. utils:convert_volume_binds(binds) expects a dict, this commit replaces it with a list of values(). Let me know if I should open an issue instead. PS - Seems like this should have been caught by basic integration testing...? |
dnephin
commented
Jun 15, 2015
@pikeas You need to install the right version of docker-py, otherwise you'll hit that error. I think we forgot to increase the minimum required version in setup.py to reflect that. It needs 1.2.3-rc1 |
aanand
commented
Jun 15, 2015
Good catch - I'll update |
Fix volume binds de-duplication (cherry picked from commit 77e594d) Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
aanand
commented
Jun 15, 2015
See #1550. |
pikeas
commented
Jun 15, 2015
Also needs to resolve conflicting requirement for |
aanand
commented
Jun 15, 2015
@pikeas What does that conflict with? |
pikeas
commented
Jun 15, 2015
@aanand Hm...disregard, broken when manually updating docker-py (before this PR was merged), fine reinstalling from scratch just now. |
Fix volume binds de-duplication (cherry picked from commit 77e594d) Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Volume binds are currently deduped based on the host path. They should be deduped based on the container path.
Closes#983 and also fixes a regression introduced by #858 where, if an existing container for a service reports a different host path for a volume than was supplied (e.g. by prepending
/mnt/sda1, as sometimes happens), a binding for each host path is passed to the new container's config, which is an error.Waiting on docker/docker-py#635.