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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommitCmd
public CommitCmd(String containerId)
withCommitConfig
public CommitCmd withCommitConfig(CommitConfig commitConfig)
withRepo
public CommitCmd withRepo(String repo)
withTag
public CommitCmd withTag(String tag)
withMessage
public CommitCmd withMessage(String message)
withAuthor
public CommitCmd withAuthor(String author)
withRun
public CommitCmd withRun(String run)
impl
protected String impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.