com.github.dockerjava.api.command
Interface StartContainerCmd
- All Superinterfaces:
- DockerCmd<Void>
- All Known Implementing Classes:
- StartContainerCmdImpl
public interface StartContainerCmd
- extends DockerCmd<Void>
Start a container
getBinds
Bind[] getBinds()
getLinks
Link[] getLinks()
getLxcConf
LxcConf[] getLxcConf()
getPortBindings
Ports getPortBindings()
isPublishAllPorts
boolean isPublishAllPorts()
isPrivileged
boolean isPrivileged()
getDns
String[] getDns()
getVolumesFrom
String getVolumesFrom()
getContainerId
String getContainerId()
withBinds
StartContainerCmd withBinds(Bind... binds)
withLinks
StartContainerCmd withLinks(Link... links)
withLxcConf
StartContainerCmd withLxcConf(LxcConf... lxcConf)
withPortBindings
StartContainerCmd withPortBindings(Ports portBindings)
withPrivileged
StartContainerCmd withPrivileged(boolean privileged)
withPublishAllPorts
StartContainerCmd withPublishAllPorts(boolean publishAllPorts)
withDns
StartContainerCmd withDns(String... dns)
withVolumesFrom
StartContainerCmd withVolumesFrom(String volumesFrom)
withContainerId
StartContainerCmd withContainerId(String containerId)
exec
Void exec()
throws NotFoundException,
NotModifiedException
- Specified by:
exec
in interface DockerCmd<Void>
- Throws:
NotFoundException
- No such container
NotModifiedException
- Container already started
getNetworkMode
String getNetworkMode()
withNetworkMode
StartContainerCmd withNetworkMode(String networkMode)
Copyright © 2014. All rights reserved.