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
protected  ImageCreateResponse impl()
           
 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, toString, 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

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

impl

protected ImageCreateResponse impl()


Copyright © 2014. All rights reserved.