Merge pull request #408 · docker-java/docker-java@899f7ba

@@ -18,6 +18,7 @@

1818

import com.github.dockerjava.api.command.CopyFileFromContainerCmd;

1919

import com.github.dockerjava.api.command.CreateContainerCmd;

2020

import com.github.dockerjava.api.command.CreateImageCmd;

21+

import com.github.dockerjava.api.command.CreateVolumeCmd;

2122

import com.github.dockerjava.api.command.DockerCmdExecFactory;

2223

import com.github.dockerjava.api.command.EventsCmd;

2324

import com.github.dockerjava.api.command.ExecCreateCmd;

@@ -26,16 +27,19 @@

2627

import com.github.dockerjava.api.command.InspectContainerCmd;

2728

import com.github.dockerjava.api.command.InspectExecCmd;

2829

import com.github.dockerjava.api.command.InspectImageCmd;

30+

import com.github.dockerjava.api.command.InspectVolumeCmd;

2931

import com.github.dockerjava.api.command.KillContainerCmd;

3032

import com.github.dockerjava.api.command.ListContainersCmd;

3133

import com.github.dockerjava.api.command.ListImagesCmd;

34+

import com.github.dockerjava.api.command.ListVolumesCmd;

3235

import com.github.dockerjava.api.command.LogContainerCmd;

3336

import com.github.dockerjava.api.command.PauseContainerCmd;

3437

import com.github.dockerjava.api.command.PingCmd;

3538

import com.github.dockerjava.api.command.PullImageCmd;

3639

import com.github.dockerjava.api.command.PushImageCmd;

3740

import com.github.dockerjava.api.command.RemoveContainerCmd;

3841

import com.github.dockerjava.api.command.RemoveImageCmd;

42+

import com.github.dockerjava.api.command.RemoveVolumeCmd;

3943

import com.github.dockerjava.api.command.RestartContainerCmd;

4044

import com.github.dockerjava.api.command.SaveImageCmd;

4145

import com.github.dockerjava.api.command.SearchImagesCmd;

@@ -59,23 +63,27 @@

5963

import com.github.dockerjava.core.command.CopyFileFromContainerCmdImpl;

6064

import com.github.dockerjava.core.command.CreateContainerCmdImpl;

6165

import com.github.dockerjava.core.command.CreateImageCmdImpl;

66+

import com.github.dockerjava.core.command.CreateVolumeCmdImpl;

6267

import com.github.dockerjava.core.command.EventsCmdImpl;

6368

import com.github.dockerjava.core.command.ExecCreateCmdImpl;

6469

import com.github.dockerjava.core.command.ExecStartCmdImpl;

6570

import com.github.dockerjava.core.command.InfoCmdImpl;

6671

import com.github.dockerjava.core.command.InspectContainerCmdImpl;

6772

import com.github.dockerjava.core.command.InspectExecCmdImpl;

6873

import com.github.dockerjava.core.command.InspectImageCmdImpl;

74+

import com.github.dockerjava.core.command.InspectVolumeCmdImpl;

6975

import com.github.dockerjava.core.command.KillContainerCmdImpl;

7076

import com.github.dockerjava.core.command.ListContainersCmdImpl;

7177

import com.github.dockerjava.core.command.ListImagesCmdImpl;

78+

import com.github.dockerjava.core.command.ListVolumesCmdImpl;

7279

import com.github.dockerjava.core.command.LogContainerCmdImpl;

7380

import com.github.dockerjava.core.command.PauseContainerCmdImpl;

7481

import com.github.dockerjava.core.command.PingCmdImpl;

7582

import com.github.dockerjava.core.command.PullImageCmdImpl;

7683

import com.github.dockerjava.core.command.PushImageCmdImpl;

7784

import com.github.dockerjava.core.command.RemoveContainerCmdImpl;

7885

import com.github.dockerjava.core.command.RemoveImageCmdImpl;

86+

import com.github.dockerjava.core.command.RemoveVolumeCmdImpl;

7987

import com.github.dockerjava.core.command.RestartContainerCmdImpl;

8088

import com.github.dockerjava.core.command.SaveImageCmdImpl;

8189

import com.github.dockerjava.core.command.SearchImagesCmdImpl;

@@ -389,6 +397,26 @@ public StatsCmd statsCmd(String containerId) {

389397

return 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

393421

public void close() throws IOException {

394422

getDockerCmdExecFactory().close();