This repository was archived by the owner on Feb 1, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
main/java/com/github/dockerjava/client/command
test/java/com/github/dockerjava/client/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change 187187 same "printed page" as the copyright notice for easier
188188 identification within third-party archives.
189189
190- Copyright [yyyy ] [name of copyright owner ]
190+ Copyright [2013 ] [docker-java@googlegroups.com ]
191191
192192 Licensed under the Apache License, Version 2.0 (the "License");
193193 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ protected Void impl() throws DockerException {
9797
9898 try {
9999 LOGGER .trace ("POST: {}" , webResource );
100- Builder builder = webResource .accept (MediaType .TEXT_PLAIN );
100+ Builder builder = webResource .accept (MediaType .APPLICATION_JSON );
101101 if (startContainerConfig != null ) {
102102 builder .type (MediaType .APPLICATION_JSON ).post (startContainerConfig );
103103 } else {
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ public void startContainerWithVolumes() throws DockerException {
8383 containerInspectResponse = dockerClient .inspectContainerCmd (container
8484 .getId ()).exec ();
8585
86+
8687 assertThat (Arrays .asList (containerInspectResponse .getVolumes ()),
8788 contains (volume1 , volume2 ));
8889
@@ -117,7 +118,7 @@ public void startContainerWithPortBindings() throws DockerException {
117118
118119 containerInspectResponse = dockerClient .inspectContainerCmd (container
119120 .getId ()).exec ();
120-
121+
121122 assertThat (Arrays .asList (containerInspectResponse .getConfig ().getExposedPorts ()),
122123 contains (tcp22 , tcp23 ));
123124
@@ -190,7 +191,7 @@ public void startContainerWithLinking() throws DockerException {
190191 public void startContainer () throws DockerException {
191192
192193 ContainerCreateResponse container = dockerClient
193- .createContainerCmd ("busybox" ).withCmd ("true" ).exec ();
194+ .createContainerCmd ("busybox" ).withCmd (new String [] { "top" } ).exec ();
194195
195196 LOG .info ("Created container {}" , container .toString ());
196197 assertThat (container .getId (), not (isEmptyString ()));
You can’t perform that action at this time.
0 commit comments