com.github.dockerjava.api.command
Interface StopContainerCmd

All Superinterfaces:
DockerCmd<Void>
All Known Implementing Classes:
StopContainerCmdImpl

public interface StopContainerCmd
extends DockerCmd<Void>

Stop a running container.


Nested Class Summary
static interface StopContainerCmd.Exec
           
 
Method Summary
 Void exec()
           
 String getContainerId()
           
 int getTimeout()
           
 StopContainerCmd withContainerId(String containerId)
           
 StopContainerCmd withTimeout(int timeout)
           
 

Method Detail

getContainerId

String getContainerId()

getTimeout

int getTimeout()

withContainerId

StopContainerCmd withContainerId(String containerId)

withTimeout

StopContainerCmd withTimeout(int timeout)

exec

Void exec()
          throws NotFoundException,
                 NotModifiedException
Specified by:
exec in interface DockerCmd<Void>
Throws:
NotFoundException - No such container
NotModifiedException - Container already stopped


Copyright © 2014. All Rights Reserved.