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


Nested Class Summary
static interface StartContainerCmd.Exec
           
 
Method Summary
 Void exec()
           
 Bind[] getBinds()
           
 String[] getCapAdd()
           
 String[] getCapDrop()
           
 String getContainerId()
           
 Device[] getDevices()
           
 String[] getDns()
           
 Link[] getLinks()
           
 LxcConf[] getLxcConf()
           
 String getNetworkMode()
           
 Ports getPortBindings()
           
 RestartPolicy getRestartPolicy()
           
 String getVolumesFrom()
           
 boolean isPrivileged()
           
 boolean isPublishAllPorts()
           
 StartContainerCmd withBinds(Bind... binds)
           
 StartContainerCmd withCapAdd(String... capAdd)
           
 StartContainerCmd withCapDrop(String... capDrop)
           
 StartContainerCmd withContainerId(String containerId)
           
 StartContainerCmd withDevices(Device... devices)
           
 StartContainerCmd withDns(String... dns)
           
 StartContainerCmd withLinks(Link... links)
           
 StartContainerCmd withLxcConf(LxcConf... lxcConf)
           
 StartContainerCmd withNetworkMode(String networkMode)
           
 StartContainerCmd withPortBindings(Ports portBindings)
           
 StartContainerCmd withPrivileged(boolean privileged)
           
 StartContainerCmd withPublishAllPorts(boolean publishAllPorts)
           
 StartContainerCmd withRestartPolicy(RestartPolicy restartPolicy)
           
 StartContainerCmd withVolumesFrom(String volumesFrom)
           
 

Method Detail

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()

getNetworkMode

String getNetworkMode()

getDevices

Device[] getDevices()

getRestartPolicy

RestartPolicy getRestartPolicy()

getCapAdd

String[] getCapAdd()

getCapDrop

String[] getCapDrop()

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)

withNetworkMode

StartContainerCmd withNetworkMode(String networkMode)

withDevices

StartContainerCmd withDevices(Device... devices)

withRestartPolicy

StartContainerCmd withRestartPolicy(RestartPolicy restartPolicy)

withCapAdd

StartContainerCmd withCapAdd(String... capAdd)

withCapDrop

StartContainerCmd withCapDrop(String... capDrop)

exec

Void exec()
          throws NotFoundException,
                 NotModifiedException
Specified by:
exec in interface DockerCmd<Void>
Throws:
NotFoundException - No such container
NotModifiedException - Container already started


Copyright © 2014. All rights reserved.