Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 27, 2014

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