X Tutup
Skip to content

Commit 381b7db

Browse files
committed
Fixed docker client name
1 parent 7ee187b commit 381b7db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/github/dockerjava/core/command/CopyArchiveToContainerCmdImplTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,19 @@ public void copyFileWithExecutePermission() throws Exception {
134134
// create a test container which starts and waits 3 seconds for the
135135
// script to be copied to the container's home dir and then executes it
136136
String containerCmd = "sleep 3; /home/" + scriptPath.getFileName().toString();
137-
CreateContainerResponse container = docker.createContainerCmd("busybox")
137+
CreateContainerResponse container = dockerClient.createContainerCmd("busybox")
138138
.withName("test")
139139
.withCmd("/bin/sh", "-c", containerCmd)
140140
.exec();
141141
// start the container
142-
docker.startContainerCmd(container.getId()).exec();
142+
dockerClient.startContainerCmd(container.getId()).exec();
143143
// copy script to container home dir
144-
docker.copyArchiveToContainerCmd(container.getId())
144+
dockerClient.copyArchiveToContainerCmd(container.getId())
145145
.withRemotePath("/home")
146146
.withHostResource(scriptPath.toString())
147147
.exec();
148148
// await exid code
149-
int exitCode = docker.waitContainerCmd(container.getId())
149+
int exitCode = dockerClient.waitContainerCmd(container.getId())
150150
.exec(new WaitContainerResultCallback())
151151
.awaitStatusCode();
152152
// check result

0 commit comments

Comments
 (0)
X Tutup