com.github.dockerjava.client.command
Class CommitCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<CommitCmd,String>
com.github.dockerjava.client.command.CommitCmd
- All Implemented Interfaces:
- DockerCmd<String>
public class CommitCmd
- extends AbstrDockerCmd<CommitCmd,String>
Create a new image from a container's changes. Returns the new image ID.
CommitCmd
public CommitCmd(String containerId)
getContainerId
public String getContainerId()
getRepository
public String getRepository()
getTag
public String getTag()
getMessage
public String getMessage()
getAuthor
public String getAuthor()
hasPauseEnabled
public boolean hasPauseEnabled()
withCommitConfig
public CommitCmd withCommitConfig(CommitConfig commitConfig)
withAttachStderr
public CommitCmd withAttachStderr(boolean attachStderr)
withAttachStderr
public CommitCmd withAttachStderr()
withAttachStdin
public CommitCmd withAttachStdin(boolean attachStdin)
withAttachStdin
public CommitCmd withAttachStdin()
withAttachStdout
public CommitCmd withAttachStdout(boolean attachStdout)
withAttachStdout
public CommitCmd withAttachStdout()
withCmd
public CommitCmd withCmd(String... cmd)
withDisableNetwork
public CommitCmd withDisableNetwork(boolean disableNetwork)
withAuthor
public CommitCmd withAuthor(String author)
withMessage
public CommitCmd withMessage(String message)
withTag
public CommitCmd withTag(String tag)
withRepository
public CommitCmd withRepository(String repository)
withPause
public CommitCmd withPause(boolean pause)
toString
public String toString()
- Overrides:
toString
in class Object
impl
protected String impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.