com.github.dockerjava.client.command
Class CreateContainerCmd

java.lang.Object
  extended by com.github.dockerjava.client.command.AbstrDockerCmd<CreateContainerCmd,ContainerCreateResponse>
      extended by com.github.dockerjava.client.command.CreateContainerCmd
All Implemented Interfaces:
DockerCmd<ContainerCreateResponse>

public class CreateContainerCmd
extends AbstrDockerCmd<CreateContainerCmd,ContainerCreateResponse>

Creates a new container.


Field Summary
 
Fields inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
baseResource
 
Constructor Summary
CreateContainerCmd(CreateContainerConfig config)
           
CreateContainerCmd(String image)
           
 
Method Summary
 String getName()
           
protected  ContainerCreateResponse impl()
           
 String toString()
           
 CreateContainerCmd withCmd(String... cmd)
           
 CreateContainerCmd withEnv(String... env)
           
 CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
           
 CreateContainerCmd withHostName(String hostName)
           
 CreateContainerCmd withImage(String image)
           
 CreateContainerCmd withName(String name)
           
 CreateContainerCmd withVolumes(Volume... volumes)
           
 CreateContainerCmd withVolumesFrom(String... volumesFrom)
           
 
Methods inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
exec, withBaseResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateContainerCmd

public CreateContainerCmd(String image)

CreateContainerCmd

public CreateContainerCmd(CreateContainerConfig config)
Method Detail

getName

public String getName()

withImage

public CreateContainerCmd withImage(String image)

withCmd

public CreateContainerCmd withCmd(String... cmd)

withVolumes

public CreateContainerCmd withVolumes(Volume... volumes)

withVolumesFrom

public CreateContainerCmd withVolumesFrom(String... volumesFrom)

withEnv

public CreateContainerCmd withEnv(String... env)

withHostName

public CreateContainerCmd withHostName(String hostName)

withName

public CreateContainerCmd withName(String name)

withExposedPorts

public CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)

toString

public String toString()
Overrides:
toString in class Object

impl

protected ContainerCreateResponse impl()


Copyright © 2014. All rights reserved.