Skip to content

Commit cd4e37c

Browse files
author
alex.collins
committed
Revert "start client with name"
This reverts commit 202ba5c.
1 parent 202ba5c commit cd4e37c

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

src/main/java/com/kpelykh/docker/client/DockerClient.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -381,20 +381,9 @@ public void startContainer(String containerId) throws DockerException {
381381
this.startContainer(containerId, null);
382382
}
383383

384-
public void startContainer(String containerId, HostConfig hostConfig) throws DockerException {
385-
startContainer(containerId, hostConfig, null);
386-
}
387-
388-
/**
389-
* @param name The name to assign to the container, e.g to user for linking.
390-
*/
391-
public void startContainer(String containerId, HostConfig hostConfig, String name) throws DockerException {
392-
393-
final String path = name == null ?
394-
String.format("/containers/%s/start", containerId):
395-
String.format("/containers/%s/start?name=%s", containerId, name);
384+
public void startContainer(String containerId, HostConfig hostConfig) throws DockerException, NotFoundException {
396385

397-
WebResource webResource = client.resource(restEndpointUrl + path);
386+
WebResource webResource = client.resource(restEndpointUrl + String.format("/containers/%s/start", containerId));
398387

399388
try {
400389
LOGGER.trace("POST: {}", webResource);

0 commit comments

Comments
 (0)