Skip to content

Allow user to check where volume is binded on host#49

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
pnuz3n:master
Aug 27, 2014
Merged

Allow user to check where volume is binded on host#49
marcuslinke merged 2 commits intodocker-java:masterfrom
pnuz3n:master

Conversation

@pnuz3n
Copy link
Contributor

@pnuz3n pnuz3n commented Aug 27, 2014

Inspect container returns the physical location in host where container's volumes are binded. This information was not accessible using docker-java. This merge adds possibility to check this information.

It is used something like:

InspectContainerResponse container = docker.inspectContainerCmd(appid).exec();
    for (VolumeBind bind : container.getVolumes()) {
        System.out.println(bind.getHostPath()+":"+bind.getContainerPath());
    }

@marcuslinke
Copy link
Contributor

@pnuz3n Thanks for this PR! Will take a look and merge it soon.

marcuslinke added a commit that referenced this pull request Aug 27, 2014
Allow user to check where volume is binded on host
@marcuslinke marcuslinke merged commit df60310 into docker-java:master Aug 27, 2014
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