File tree Expand file tree Collapse file tree
src/main/java/com/kpelykh/docker/client Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments