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.
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.