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.
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.