com.github.dockerjava.client.command
Class CommitCmd

java.lang.Object
  extended by com.github.dockerjava.client.command.AbstrDockerCmd<CommitCmd,String>
      extended by 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.


Field Summary
 
Fields inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
baseResource
 
Constructor Summary
CommitCmd(String containerId)
           
 
Method Summary
protected  String impl()
           
 CommitCmd withAuthor(String author)
           
 CommitCmd withCommitConfig(CommitConfig commitConfig)
           
 CommitCmd withMessage(String message)
           
 CommitCmd withRepo(String repo)
           
 CommitCmd withRun(String run)
           
 CommitCmd withTag(String tag)
           
 
Methods inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
exec, withBaseResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitCmd

public CommitCmd(String containerId)
Method Detail

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.