Skip to content

Fix CreateContainerCmdImpl.withVolumesFrom()#114

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
albers:fix-create-withVolumesFrom
Dec 17, 2014
Merged

Fix CreateContainerCmdImpl.withVolumesFrom()#114
marcuslinke merged 2 commits intodocker-java:masterfrom
albers:fix-create-withVolumesFrom

Conversation

@albers
Copy link
Copy Markdown
Contributor

@albers albers commented Dec 17, 2014

This is the second (and last) parameter in CreateContainerCmd that did not work, the first being Dns, see #107.
Resolution was the same as in #107: move the parameter into the nested HostConfig.

I had some trouble understanding how the VolumesFrom parameter is really handled in the creation and start steps, so I added some tests that verify my assumptions.

Another method that did not work until Docker Remote API 1.15, see
CreateContainerCmd.withDns().

To fix it, the parameter had to be moved to nested HostConfig.
marcuslinke added a commit that referenced this pull request Dec 17, 2014
Fix CreateContainerCmdImpl.withVolumesFrom()
@marcuslinke marcuslinke merged commit b2f58ed into docker-java:master Dec 17, 2014
@marcuslinke
Copy link
Copy Markdown
Contributor

@albers Thanks as always!

@albers albers deleted the fix-create-withVolumesFrom branch December 17, 2014 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants