com.github.dockerjava.api.command
Interface CommitCmd

All Superinterfaces:
DockerCmd<String>
All Known Implementing Classes:
CommitCmdImpl

public interface CommitCmd
extends DockerCmd<String>

Create a new image from a container's changes. Returns the new image ID.


Nested Class Summary
static interface CommitCmd.Exec
           
 
Method Summary
 String exec()
           
 String getAuthor()
           
 String getContainerId()
           
 String[] getEnv()
           
 ExposedPorts getExposedPorts()
           
 String getHostname()
           
 Integer getMemory()
           
 Integer getMemorySwap()
           
 String getMessage()
           
 String[] getPortSpecs()
           
 String getRepository()
           
 String getTag()
           
 String getUser()
           
 Volumes getVolumes()
           
 String getWorkingDir()
           
 boolean hasPauseEnabled()
           
 boolean isOpenStdin()
           
 boolean isStdinOnce()
           
 boolean isTty()
           
 CommitCmd withAttachStderr()
           
 CommitCmd withAttachStderr(boolean attachStderr)
           
 CommitCmd withAttachStdin()
           
 CommitCmd withAttachStdin(boolean attachStdin)
           
 CommitCmd withAttachStdout()
           
 CommitCmd withAttachStdout(boolean attachStdout)
           
 CommitCmd withAuthor(String author)
           
 CommitCmd withCmd(String... cmd)
           
 CommitCmd withContainerId(String containerId)
           
 CommitCmd withDisableNetwork(boolean disableNetwork)
           
 CommitCmd withEnv(String... env)
           
 CommitCmd withExposedPorts(ExposedPorts exposedPorts)
           
 CommitCmd withHostname(String hostname)
           
 CommitCmd withMemory(Integer memory)
           
 CommitCmd withMemorySwap(Integer memorySwap)
           
 CommitCmd withMessage(String message)
           
 CommitCmd withOpenStdin(boolean openStdin)
           
 CommitCmd withPause(boolean pause)
           
 CommitCmd withPortSpecs(String... portSpecs)
           
 CommitCmd withRepository(String repository)
           
 CommitCmd withStdinOnce()
           
 CommitCmd withStdinOnce(boolean stdinOnce)
           
 CommitCmd withTag(String tag)
           
 CommitCmd withTty()
           
 CommitCmd withTty(boolean tty)
           
 CommitCmd withUser(String user)
           
 CommitCmd withVolumes(Volumes volumes)
           
 CommitCmd withWorkingDir(String workingDir)
           
 

Method Detail

getContainerId

String getContainerId()

withContainerId

CommitCmd withContainerId(String containerId)

getRepository

String getRepository()

getTag

String getTag()

getMessage

String getMessage()

getAuthor

String getAuthor()

hasPauseEnabled

boolean hasPauseEnabled()

withAttachStderr

CommitCmd withAttachStderr(boolean attachStderr)

withAttachStderr

CommitCmd withAttachStderr()

withAttachStdin

CommitCmd withAttachStdin(boolean attachStdin)

withAttachStdin

CommitCmd withAttachStdin()

withAttachStdout

CommitCmd withAttachStdout(boolean attachStdout)

withAttachStdout

CommitCmd withAttachStdout()

withCmd

CommitCmd withCmd(String... cmd)

withDisableNetwork

CommitCmd withDisableNetwork(boolean disableNetwork)

withAuthor

CommitCmd withAuthor(String author)

withMessage

CommitCmd withMessage(String message)

withTag

CommitCmd withTag(String tag)

withRepository

CommitCmd withRepository(String repository)

withPause

CommitCmd withPause(boolean pause)

getEnv

String[] getEnv()

withEnv

CommitCmd withEnv(String... env)

getExposedPorts

ExposedPorts getExposedPorts()

withExposedPorts

CommitCmd withExposedPorts(ExposedPorts exposedPorts)

getHostname

String getHostname()

withHostname

CommitCmd withHostname(String hostname)

getMemory

Integer getMemory()

withMemory

CommitCmd withMemory(Integer memory)

getMemorySwap

Integer getMemorySwap()

withMemorySwap

CommitCmd withMemorySwap(Integer memorySwap)

isOpenStdin

boolean isOpenStdin()

withOpenStdin

CommitCmd withOpenStdin(boolean openStdin)

getPortSpecs

String[] getPortSpecs()

withPortSpecs

CommitCmd withPortSpecs(String... portSpecs)

isStdinOnce

boolean isStdinOnce()

withStdinOnce

CommitCmd withStdinOnce(boolean stdinOnce)

withStdinOnce

CommitCmd withStdinOnce()

isTty

boolean isTty()

withTty

CommitCmd withTty(boolean tty)

withTty

CommitCmd withTty()

getUser

String getUser()

withUser

CommitCmd withUser(String user)

getVolumes

Volumes getVolumes()

withVolumes

CommitCmd withVolumes(Volumes volumes)

getWorkingDir

String getWorkingDir()

withWorkingDir

CommitCmd withWorkingDir(String workingDir)

exec

String exec()
            throws NotFoundException
Specified by:
exec in interface DockerCmd<String>
Throws:
NotFoundException - No such container


Copyright © 2014. All Rights Reserved.