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
 String getAuthor()
           
 String getContainerId()
           
 String getMessage()
           
 String getRepository()
           
 String getTag()
           
 boolean hasPauseEnabled()
           
protected  String impl()
           
 String toString()
           
 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 withCommitConfig(CommitConfig commitConfig)
           
 CommitCmd withDisableNetwork(boolean disableNetwork)
           
 CommitCmd withMessage(String message)
           
 CommitCmd withPause(boolean pause)
           
 CommitCmd withRepository(String repository)
           
 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, wait, wait, wait
 

Constructor Detail

CommitCmd

public CommitCmd(String containerId)
Method Detail

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.