com.github.dockerjava.client.command
Class CreateContainerCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<CreateContainerCmd,ContainerCreateResponse>
com.github.dockerjava.client.command.CreateContainerCmd
- All Implemented Interfaces:
- DockerCmd<ContainerCreateResponse>
public class CreateContainerCmd
- extends AbstrDockerCmd<CreateContainerCmd,ContainerCreateResponse>
Creates a new container.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateContainerCmd
public CreateContainerCmd(String image)
CreateContainerCmd
public CreateContainerCmd(CreateContainerConfig config)
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.