|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StartContainerCmd
Start a container
Nested Class Summary | |
---|---|
static interface |
StartContainerCmd.Exec
|
Method Summary | |
---|---|
Void |
exec()
|
Bind[] |
getBinds()
|
String[] |
getCapAdd()
|
String[] |
getCapDrop()
|
String |
getContainerId()
|
Device[] |
getDevices()
|
String[] |
getDns()
|
String[] |
getDnsSearch()
|
Link[] |
getLinks()
|
LxcConf[] |
getLxcConf()
|
String |
getNetworkMode()
|
Ports |
getPortBindings()
|
RestartPolicy |
getRestartPolicy()
|
String |
getVolumesFrom()
|
boolean |
isPrivileged()
|
boolean |
isPublishAllPorts()
|
StartContainerCmd |
withBinds(Bind... binds)
|
StartContainerCmd |
withCapAdd(String... capAdd)
Add linux kernel capability to the container. |
StartContainerCmd |
withCapDrop(String... capDrop)
Drop linux kernel capability from the container. |
StartContainerCmd |
withContainerId(String containerId)
|
StartContainerCmd |
withDevices(Device... devices)
Add host devices to the container |
StartContainerCmd |
withDns(String... dns)
Set custom DNS servers |
StartContainerCmd |
withDnsSearch(String... dnsSearch)
Set custom DNS search domains |
StartContainerCmd |
withLinks(Link... links)
Add link to another container. |
StartContainerCmd |
withLxcConf(LxcConf... lxcConf)
|
StartContainerCmd |
withNetworkMode(String networkMode)
Set the Network mode for the container 'bridge': creates a new network stack for the container on the docker bridge 'none': no networking for this container 'container: |
StartContainerCmd |
withPortBindings(PortBinding... portBindings)
Add one or more PortBinding s. |
StartContainerCmd |
withPortBindings(Ports portBindings)
Add the port bindings that are contained in the given Ports
object. |
StartContainerCmd |
withPrivileged(boolean privileged)
|
StartContainerCmd |
withPublishAllPorts(boolean publishAllPorts)
|
StartContainerCmd |
withRestartPolicy(RestartPolicy restartPolicy)
Set custom RestartPolicy for the container. |
StartContainerCmd |
withVolumesFrom(String volumesFrom)
|
Method Detail |
---|
Bind[] getBinds()
Link[] getLinks()
LxcConf[] getLxcConf()
Ports getPortBindings()
boolean isPublishAllPorts()
boolean isPrivileged()
String[] getDns()
String[] getDnsSearch()
String getVolumesFrom()
String getContainerId()
String getNetworkMode()
Device[] getDevices()
RestartPolicy getRestartPolicy()
String[] getCapAdd()
String[] getCapDrop()
StartContainerCmd withBinds(Bind... binds)
StartContainerCmd withLinks(Link... links)
StartContainerCmd withLxcConf(LxcConf... lxcConf)
StartContainerCmd withPortBindings(Ports portBindings)
Ports
object.
withPortBindings(PortBinding...)
StartContainerCmd withPortBindings(PortBinding... portBindings)
PortBinding
s.
This corresponds to the --publish
(-p
)
option of the docker run
CLI command.
StartContainerCmd withPrivileged(boolean privileged)
StartContainerCmd withPublishAllPorts(boolean publishAllPorts)
StartContainerCmd withDns(String... dns)
StartContainerCmd withDnsSearch(String... dnsSearch)
StartContainerCmd withVolumesFrom(String volumesFrom)
StartContainerCmd withContainerId(String containerId)
StartContainerCmd withNetworkMode(String networkMode)
StartContainerCmd withDevices(Device... devices)
StartContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
RestartPolicy
for the container. Defaults to
RestartPolicy.noRestart()
StartContainerCmd withCapAdd(String... capAdd)
StartContainerCmd withCapDrop(String... capDrop)
Void exec() throws NotFoundException, NotModifiedException
exec
in interface DockerCmd<Void>
NotFoundException
- No such container
NotModifiedException
- Container already started
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |