Repository navigation
Fix volumes-from/bind-mounts passed in on start - #9631
Conversation
7f47e7d to
432bd17
Compare
|
ping @jfrazelle @crosbymichael |
There was a problem hiding this comment.
You cannot say this and we need to revert the docs that say that this is deprecated as this is not the case and will not be deprecated. For the longest time this has been the only way of passing binds and volumes and so many third party clients use this as there was no other way.
1665254 to
b9ad32f
Compare
|
Fixed that wording. |
|
Thanks, I'm doing some testing now |
There was a problem hiding this comment.
Maybe makes sense to specify somewhere that this volumes will be shadowed by start options.
There was a problem hiding this comment.
Can you please at least ping docs when stuff like this comes up? I have no way of discovering issues like this in a timely manner otherwise.
There was a problem hiding this comment.
What does this line mean?
There was a problem hiding this comment.
This is checking if the path of the passed in volume is the same as the path in container.Volumes.
There was a problem hiding this comment.
But why are you checking for this and returning?
There was a problem hiding this comment.
Because if it's the same then we don't need to do anything.
Same path means the same volume as there is only 1 volume object per path.
|
FYI, I tested this and it has fixed my issues I've seen with 1.4 |
|
@ibuildthecloud thanks for testing |
There was a problem hiding this comment.
Add a comment explaining that this will reset the volumesfrom hostconfig each time and that this is needed in order for start to override what was set in create.
b9ad32f to
01becdc
Compare
Fixes moby#9628 Slightly reverts moby#8683, HostConfig on start is _not_ deprecated. Signed-off-by: Brian Goff <[email protected]>
01becdc to
d44c9f9
Compare
|
Updated. |
|
*new test and fixed an issue where that wasn't the case. |
|
@jfrazelle @LK4D4 I removed your LGTM since the code changed in the last revision |
|
@ibuildthecloud if you want to retest as well that would be awesome, if not no biggie :) |
|
I retested it with |
|
lftm |
|
Would it be too much to ask for a test in docker_api in integration-cli? |
|
@unclejack I see that there are three tests in this PR. |
|
I'm also adding the entire docker-py integration tests for the lib in #9676 for API tests not owned by us. |
|
LGTM |
|
LGTM, although the code is very complicated to read :( |
…_start Fix volumes-from/bind-mounts passed in on start
Fixes #9628