public interface StartContainerCmd extends DockerCmd<Void>
CreateContainerCmd
now.Modifier and Type | Interface and Description |
---|---|
static interface |
StartContainerCmd.Exec |
Bind[] getBinds()
Link[] getLinks()
LxcConf[] getLxcConf()
Ports getPortBindings()
Boolean isPublishAllPorts()
Boolean isPrivileged()
String[] getDns()
String[] getDnsSearch()
String getVolumesFrom()
String getContainerId()
String getNetworkMode()
Device[] getDevices()
String[] getExtraHosts()
RestartPolicy getRestartPolicy()
Capability[] getCapAdd()
Capability[] getCapDrop()
@Deprecated StartContainerCmd withBinds(Bind... binds)
@Deprecated StartContainerCmd withLinks(Link... links)
@Deprecated StartContainerCmd withLxcConf(LxcConf... lxcConf)
@Deprecated StartContainerCmd withPortBindings(Ports portBindings)
Ports
object.withPortBindings(PortBinding...)
@Deprecated StartContainerCmd withPortBindings(PortBinding... portBindings)
PortBinding
s.
This corresponds to the --publish
(-p
)
option of the docker run
CLI command.@Deprecated StartContainerCmd withPrivileged(Boolean privileged)
@Deprecated StartContainerCmd withPublishAllPorts(Boolean publishAllPorts)
@Deprecated StartContainerCmd withDns(String... dns)
@Deprecated StartContainerCmd withDnsSearch(String... dnsSearch)
@Deprecated StartContainerCmd withVolumesFrom(String volumesFrom)
@Deprecated StartContainerCmd withContainerId(String containerId)
@Deprecated StartContainerCmd withNetworkMode(String networkMode)
@Deprecated StartContainerCmd withDevices(Device... devices)
@Deprecated StartContainerCmd withExtraHosts(String... extraHosts)
@Deprecated StartContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
RestartPolicy
for the container. Defaults to
RestartPolicy.noRestart()
@Deprecated StartContainerCmd withCapAdd(Capability... capAdd)
Capability.MKNOD
allows the container to create special files using the 'mknod' command.@Deprecated StartContainerCmd withCapDrop(Capability... capDrop)
Capability.CHOWN
prevents the container from changing the owner of any files.Void exec() throws NotFoundException, NotModifiedException
exec
in interface DockerCmd<Void>
NotFoundException
- No such containerNotModifiedException
- Container already startedCopyright © 2015. All Rights Reserved.