Merge pull request #408 · docker-java/docker-java@899f7ba
@@ -18,6 +18,7 @@
1818import com.github.dockerjava.api.command.CopyFileFromContainerCmd;
1919import com.github.dockerjava.api.command.CreateContainerCmd;
2020import com.github.dockerjava.api.command.CreateImageCmd;
21+import com.github.dockerjava.api.command.CreateVolumeCmd;
2122import com.github.dockerjava.api.command.DockerCmdExecFactory;
2223import com.github.dockerjava.api.command.EventsCmd;
2324import com.github.dockerjava.api.command.ExecCreateCmd;
@@ -26,16 +27,19 @@
2627import com.github.dockerjava.api.command.InspectContainerCmd;
2728import com.github.dockerjava.api.command.InspectExecCmd;
2829import com.github.dockerjava.api.command.InspectImageCmd;
30+import com.github.dockerjava.api.command.InspectVolumeCmd;
2931import com.github.dockerjava.api.command.KillContainerCmd;
3032import com.github.dockerjava.api.command.ListContainersCmd;
3133import com.github.dockerjava.api.command.ListImagesCmd;
34+import com.github.dockerjava.api.command.ListVolumesCmd;
3235import com.github.dockerjava.api.command.LogContainerCmd;
3336import com.github.dockerjava.api.command.PauseContainerCmd;
3437import com.github.dockerjava.api.command.PingCmd;
3538import com.github.dockerjava.api.command.PullImageCmd;
3639import com.github.dockerjava.api.command.PushImageCmd;
3740import com.github.dockerjava.api.command.RemoveContainerCmd;
3841import com.github.dockerjava.api.command.RemoveImageCmd;
42+import com.github.dockerjava.api.command.RemoveVolumeCmd;
3943import com.github.dockerjava.api.command.RestartContainerCmd;
4044import com.github.dockerjava.api.command.SaveImageCmd;
4145import com.github.dockerjava.api.command.SearchImagesCmd;
@@ -59,23 +63,27 @@
5963import com.github.dockerjava.core.command.CopyFileFromContainerCmdImpl;
6064import com.github.dockerjava.core.command.CreateContainerCmdImpl;
6165import com.github.dockerjava.core.command.CreateImageCmdImpl;
66+import com.github.dockerjava.core.command.CreateVolumeCmdImpl;
6267import com.github.dockerjava.core.command.EventsCmdImpl;
6368import com.github.dockerjava.core.command.ExecCreateCmdImpl;
6469import com.github.dockerjava.core.command.ExecStartCmdImpl;
6570import com.github.dockerjava.core.command.InfoCmdImpl;
6671import com.github.dockerjava.core.command.InspectContainerCmdImpl;
6772import com.github.dockerjava.core.command.InspectExecCmdImpl;
6873import com.github.dockerjava.core.command.InspectImageCmdImpl;
74+import com.github.dockerjava.core.command.InspectVolumeCmdImpl;
6975import com.github.dockerjava.core.command.KillContainerCmdImpl;
7076import com.github.dockerjava.core.command.ListContainersCmdImpl;
7177import com.github.dockerjava.core.command.ListImagesCmdImpl;
78+import com.github.dockerjava.core.command.ListVolumesCmdImpl;
7279import com.github.dockerjava.core.command.LogContainerCmdImpl;
7380import com.github.dockerjava.core.command.PauseContainerCmdImpl;
7481import com.github.dockerjava.core.command.PingCmdImpl;
7582import com.github.dockerjava.core.command.PullImageCmdImpl;
7683import com.github.dockerjava.core.command.PushImageCmdImpl;
7784import com.github.dockerjava.core.command.RemoveContainerCmdImpl;
7885import com.github.dockerjava.core.command.RemoveImageCmdImpl;
86+import com.github.dockerjava.core.command.RemoveVolumeCmdImpl;
7987import com.github.dockerjava.core.command.RestartContainerCmdImpl;
8088import com.github.dockerjava.core.command.SaveImageCmdImpl;
8189import com.github.dockerjava.core.command.SearchImagesCmdImpl;
@@ -389,6 +397,26 @@ public StatsCmd statsCmd(String containerId) {
389397return new StatsCmdImpl(getDockerCmdExecFactory().createStatsCmdExec(), containerId);
390398 }
391399400+@Override
401+public CreateVolumeCmd createVolumeCmd() {
402+return new CreateVolumeCmdImpl(getDockerCmdExecFactory().createCreateVolumeCmdExec());
403+ }
404+405+@Override
406+public InspectVolumeCmd inspectVolumeCmd(String name) {
407+return new InspectVolumeCmdImpl(getDockerCmdExecFactory().createInspectVolumeCmdExec(), name);
408+ }
409+410+@Override
411+public RemoveVolumeCmd removeVolumeCmd(String name) {
412+return new RemoveVolumeCmdImpl(getDockerCmdExecFactory().createRemoveVolumeCmdExec(), name);
413+ }
414+415+@Override
416+public ListVolumesCmd listVolumesCmd() {
417+return new ListVolumesCmdImpl(getDockerCmdExecFactory().createListVolumesCmdExec());
418+ }
419+392420@Override
393421public void close() throws IOException {
394422getDockerCmdExecFactory().close();