Skip to content

Conversation

@evilbwil
Copy link

@evilbwil evilbwil commented Jan 6, 2015

as to the docker API documentation (1.16) the HostConfig part of the create container call is used to setup a container with bind volumes (binding a host dir to a container dir). As of now the HostConfig is only passed into the start container call (in which it get discarded in docker 1.4).

this needs nirima/jDocker#5

@magnayn
Copy link
Contributor

magnayn commented Jan 20, 2015

Ok - I'm trying to merge in the move to docker-java/docker-java, I'll try this patch when that's done + merge.

magnayn added a commit that referenced this pull request Jan 20, 2015
Adding HostConfig to ContainerConfig to fix Bind Volumes
@magnayn magnayn merged commit 649f50f into jenkinsci:master Jan 20, 2015
@magnayn
Copy link
Contributor

magnayn commented Jan 20, 2015

Ok - I've merged back to docker-java, I'm not sure if it's configuration also requires items from createHostConfig into createContainerConfig -- could you take a look if you have a 1.4 host?

@evilbwil
Copy link
Author

i tested it against:
Docker version 1.4.0, build 4595d4f

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.

3 participants