File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/com/github/dockerjava/core/command Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments