com.github.dockerjava.api.command
Interface RestartContainerCmd
- All Superinterfaces:
- DockerCmd<Void>
- All Known Implementing Classes:
- RestartContainerCmdImpl
public interface RestartContainerCmd
- extends DockerCmd<Void>
Restart a running container.
getContainerId
String getContainerId()
getTimeout
int getTimeout()
withContainerId
RestartContainerCmd withContainerId(String containerId)
withtTimeout
RestartContainerCmd withtTimeout(int timeout)
exec
Void exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<Void>
- Throws:
NotFoundException
- No such container
Copyright © 2014. All rights reserved.