com.github.dockerjava.client.command
Class ImportImageCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<ImportImageCmd,ImageCreateResponse>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportImageCmd
public ImportImageCmd(String repository,
InputStream imageStream)
- Parameters:
repository
- the repository to import toimageStream
- the InputStream of the tar file
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.