File tree Expand file tree Collapse file tree
src/test/java/com/github/dockerjava/client/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public void startContainerWithPortBindings() throws DockerException {
101101
102102 ContainerCreateResponse container = dockerClient
103103 .createContainerCmd ("busybox" )
104- .withCmd ("top " ).withExposedPorts (tcp22 , tcp23 ).exec ();
104+ .withCmd ("true " ).withExposedPorts (tcp22 , tcp23 ).exec ();
105105
106106 LOG .info ("Created container {}" , container .toString ());
107107
@@ -119,8 +119,6 @@ public void startContainerWithPortBindings() throws DockerException {
119119 containerInspectResponse = dockerClient .inspectContainerCmd (container
120120 .getId ()).exec ();
121121
122- assertThat (containerInspectResponse .getState ().isRunning (), is (true ));
123-
124122 assertThat (Arrays .asList (containerInspectResponse .getConfig ().getExposedPorts ()),
125123 contains (tcp22 , tcp23 ));
126124
You can’t perform that action at this time.
0 commit comments