com.github.dockerjava.client.command
Class StartContainerCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<StartContainerCmd,Void>
com.github.dockerjava.client.command.StartContainerCmd
- All Implemented Interfaces:
- DockerCmd<Void>
public class StartContainerCmd
- extends AbstrDockerCmd<StartContainerCmd,Void>
Run a container
StartContainerCmd
public StartContainerCmd(String containerId)
getContainerId
public String getContainerId()
withBinds
public StartContainerCmd withBinds(Bind... binds)
withLinks
public StartContainerCmd withLinks(Link... links)
withLxcConf
public StartContainerCmd withLxcConf(LxcConf[] lxcConf)
withPortBindings
public StartContainerCmd withPortBindings(Ports portBindings)
withPrivileged
public StartContainerCmd withPrivileged(boolean privileged)
withPublishAllPorts
public StartContainerCmd withPublishAllPorts(boolean publishAllPorts)
withDns
public StartContainerCmd withDns(String dns)
withVolumesFrom
public StartContainerCmd withVolumesFrom(String volumesFrom)
withContainerId
public StartContainerCmd withContainerId(String containerId)
toString
public String toString()
- Overrides:
toString
in class Object
impl
protected Void impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.