com.github.dockerjava.client.command
Class ImportImageCmd

java.lang.Object
  extended by com.github.dockerjava.client.command.AbstrDockerCmd<ImportImageCmd,ImageCreateResponse>
      extended by com.github.dockerjava.client.command.ImportImageCmd
All Implemented Interfaces:
DockerCmd<ImageCreateResponse>

public class ImportImageCmd
extends AbstrDockerCmd<ImportImageCmd,ImageCreateResponse>

Create an image by importing the given stream of a tar file.


Field Summary
 
Fields inherited from class com.github.dockerjava.client.command.AbstrDockerCmd
baseResource
 
Constructor Summary
ImportImageCmd(String repository, InputStream imageStream)
           
 
Method Summary
 String getRepository()
           
 String getTag()
           
protected  ImageCreateResponse impl()
           
 String toString()
           
 ImportImageCmd withImageStream(InputStream imageStream)
           
 ImportImageCmd withRepository(String repository)
           
 ImportImageCmd 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

ImportImageCmd

public ImportImageCmd(String repository,
                      InputStream imageStream)
Parameters:
repository - the repository to import to
imageStream - the InputStream of the tar file
Method Detail

getRepository

public String getRepository()

getTag

public String getTag()

withRepository

public ImportImageCmd withRepository(String repository)
Parameters:
repository - the repository to import to

withImageStream

public ImportImageCmd withImageStream(InputStream imageStream)
Parameters:
imageStream - the InputStream of the tar file

withTag

public ImportImageCmd withTag(String tag)
Parameters:
tag - any tag for this image

toString

public String toString()
Overrides:
toString in class Object

impl

protected ImageCreateResponse impl()


Copyright © 2014. All rights reserved.