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
protected  ContainerCreateResponse impl()
           
 CreateContainerCmd withCmd(String... cmd)
           
 CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)
           
 CreateContainerCmd withImage(String image)
           
 CreateContainerCmd withName(String name)
           
 CreateContainerCmd withVolumes(Volume... volumes)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

CreateContainerCmd

public CreateContainerCmd(String image)

CreateContainerCmd

public CreateContainerCmd(CreateContainerConfig config)
Method Detail

withImage

public CreateContainerCmd withImage(String image)

withCmd

public CreateContainerCmd withCmd(String... cmd)

withVolumes

public CreateContainerCmd withVolumes(Volume... volumes)

withName

public CreateContainerCmd withName(String name)

withExposedPorts

public CreateContainerCmd withExposedPorts(ExposedPort... exposedPorts)

impl

protected ContainerCreateResponse impl()


Copyright © 2014. All rights reserved.