com.github.dockerjava.core.command
Class CreateImageCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<CreateImageCmd,CreateImageResponse>
com.github.dockerjava.core.command.CreateImageCmdImpl
- All Implemented Interfaces:
- CreateImageCmd, DockerCmd<CreateImageResponse>
public class CreateImageCmdImpl
- extends AbstrDockerCmd<CreateImageCmd,CreateImageResponse>
- implements CreateImageCmd
Create an image by importing the given stream of a tar file.
Methods inherited from interface com.github.dockerjava.api.command.DockerCmd |
exec |
CreateImageCmdImpl
public CreateImageCmdImpl(CreateImageCmd.Exec exec,
String repository,
InputStream imageStream)
- Parameters:
repository
- the repository to import toimageStream
- the InputStream of the tar file
getRepository
public String getRepository()
- Specified by:
getRepository
in interface CreateImageCmd
getTag
public String getTag()
- Specified by:
getTag
in interface CreateImageCmd
getImageStream
public InputStream getImageStream()
- Specified by:
getImageStream
in interface CreateImageCmd
withRepository
public CreateImageCmdImpl withRepository(String repository)
- Specified by:
withRepository
in interface CreateImageCmd
- Parameters:
repository
- the repository to import to
withImageStream
public CreateImageCmdImpl withImageStream(InputStream imageStream)
- Specified by:
withImageStream
in interface CreateImageCmd
- Parameters:
imageStream
- the InputStream of the tar file
withTag
public CreateImageCmdImpl withTag(String tag)
- Specified by:
withTag
in interface CreateImageCmd
- Parameters:
tag
- any tag for this image
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014. All rights reserved.