|
8 | 8 | import java.io.InputStream; |
9 | 9 |
|
10 | 10 | import com.github.dockerjava.api.DockerClient; |
11 | | -import com.github.dockerjava.api.command.AttachContainerCmd; |
12 | | -import com.github.dockerjava.api.command.AuthCmd; |
13 | | -import com.github.dockerjava.api.command.BuildImageCmd; |
14 | | -import com.github.dockerjava.api.command.CommitCmd; |
15 | | -import com.github.dockerjava.api.command.ContainerDiffCmd; |
16 | | -import com.github.dockerjava.api.command.CopyFileFromContainerCmd; |
17 | | -import com.github.dockerjava.api.command.CreateContainerCmd; |
18 | | -import com.github.dockerjava.api.command.CreateImageCmd; |
19 | | -import com.github.dockerjava.api.command.DockerCmdExecFactory; |
20 | | -import com.github.dockerjava.api.command.EventCallback; |
21 | | -import com.github.dockerjava.api.command.EventsCmd; |
22 | | -import com.github.dockerjava.api.command.ExecCreateCmd; |
23 | | -import com.github.dockerjava.api.command.ExecStartCmd; |
24 | | -import com.github.dockerjava.api.command.InfoCmd; |
25 | | -import com.github.dockerjava.api.command.InspectContainerCmd; |
26 | | -import com.github.dockerjava.api.command.InspectImageCmd; |
27 | | -import com.github.dockerjava.api.command.KillContainerCmd; |
28 | | -import com.github.dockerjava.api.command.ListContainersCmd; |
29 | | -import com.github.dockerjava.api.command.ListImagesCmd; |
30 | | -import com.github.dockerjava.api.command.LogContainerCmd; |
31 | | -import com.github.dockerjava.api.command.PauseContainerCmd; |
32 | | -import com.github.dockerjava.api.command.PingCmd; |
33 | | -import com.github.dockerjava.api.command.PullImageCmd; |
34 | | -import com.github.dockerjava.api.command.PushImageCmd; |
35 | | -import com.github.dockerjava.api.command.RemoveContainerCmd; |
36 | | -import com.github.dockerjava.api.command.RemoveImageCmd; |
37 | | -import com.github.dockerjava.api.command.RestartContainerCmd; |
38 | | -import com.github.dockerjava.api.command.SearchImagesCmd; |
39 | | -import com.github.dockerjava.api.command.StartContainerCmd; |
40 | | -import com.github.dockerjava.api.command.StopContainerCmd; |
41 | | -import com.github.dockerjava.api.command.TagImageCmd; |
42 | | -import com.github.dockerjava.api.command.TopContainerCmd; |
43 | | -import com.github.dockerjava.api.command.UnpauseContainerCmd; |
44 | | -import com.github.dockerjava.api.command.VersionCmd; |
45 | | -import com.github.dockerjava.api.command.WaitContainerCmd; |
| 11 | +import com.github.dockerjava.api.command.*; |
46 | 12 | import com.github.dockerjava.api.model.AuthConfig; |
47 | | -import com.github.dockerjava.core.command.AttachContainerCmdImpl; |
48 | | -import com.github.dockerjava.core.command.AuthCmdImpl; |
49 | | -import com.github.dockerjava.core.command.BuildImageCmdImpl; |
50 | | -import com.github.dockerjava.core.command.CommitCmdImpl; |
51 | | -import com.github.dockerjava.core.command.ContainerDiffCmdImpl; |
52 | | -import com.github.dockerjava.core.command.CopyFileFromContainerCmdImpl; |
53 | | -import com.github.dockerjava.core.command.CreateContainerCmdImpl; |
54 | | -import com.github.dockerjava.core.command.CreateImageCmdImpl; |
55 | | -import com.github.dockerjava.core.command.EventsCmdImpl; |
56 | | -import com.github.dockerjava.core.command.ExecCreateCmdImpl; |
57 | | -import com.github.dockerjava.core.command.ExecStartCmdImpl; |
58 | | -import com.github.dockerjava.core.command.InfoCmdImpl; |
59 | | -import com.github.dockerjava.core.command.InspectContainerCmdImpl; |
60 | | -import com.github.dockerjava.core.command.InspectImageCmdImpl; |
61 | | -import com.github.dockerjava.core.command.KillContainerCmdImpl; |
62 | | -import com.github.dockerjava.core.command.ListContainersCmdImpl; |
63 | | -import com.github.dockerjava.core.command.ListImagesCmdImpl; |
64 | | -import com.github.dockerjava.core.command.LogContainerCmdImpl; |
65 | | -import com.github.dockerjava.core.command.PauseContainerCmdImpl; |
66 | | -import com.github.dockerjava.core.command.PingCmdImpl; |
67 | | -import com.github.dockerjava.core.command.PullImageCmdImpl; |
68 | | -import com.github.dockerjava.core.command.PushImageCmdImpl; |
69 | | -import com.github.dockerjava.core.command.RemoveContainerCmdImpl; |
70 | | -import com.github.dockerjava.core.command.RemoveImageCmdImpl; |
71 | | -import com.github.dockerjava.core.command.RestartContainerCmdImpl; |
72 | | -import com.github.dockerjava.core.command.SearchImagesCmdImpl; |
73 | | -import com.github.dockerjava.core.command.StartContainerCmdImpl; |
74 | | -import com.github.dockerjava.core.command.StopContainerCmdImpl; |
75 | | -import com.github.dockerjava.core.command.TagImageCmdImpl; |
76 | | -import com.github.dockerjava.core.command.TopContainerCmdImpl; |
77 | | -import com.github.dockerjava.core.command.UnpauseContainerCmdImpl; |
78 | | -import com.github.dockerjava.core.command.VersionCmdImpl; |
79 | | -import com.github.dockerjava.core.command.WaitContainerCmdImpl; |
| 13 | +import com.github.dockerjava.core.command.*; |
80 | 14 |
|
81 | 15 | /** |
82 | 16 | * @author Konstantin Pelykh (kpelykh@gmail.com) |
@@ -195,6 +129,13 @@ public PushImageCmd pushImageCmd(String name) { |
195 | 129 | return new PushImageCmdImpl(getDockerCmdExecFactory() |
196 | 130 | .createPushImageCmdExec(), name).withAuthConfig(dockerClientConfig.effectiveAuthConfig(name)); |
197 | 131 | } |
| 132 | + |
| 133 | + @Override |
| 134 | + public SaveImageCmd saveImageCmd(String name) { |
| 135 | + return new SaveImageCmdImpl(getDockerCmdExecFactory() |
| 136 | + .createSaveImageCmdExec(), name).withAuthConfig(dockerClientConfig.effectiveAuthConfig(name)); |
| 137 | + |
| 138 | + } |
198 | 139 |
|
199 | 140 | @Override |
200 | 141 | public CreateImageCmd createImageCmd(String repository, |
|
0 commit comments