com.github.dockerjava.core.command
Class PushImageCmdImpl
java.lang.Object
com.github.dockerjava.core.command.AbstrDockerCmd<T,RES_T>
com.github.dockerjava.core.command.AbstrAuthCfgDockerCmd<PushImageCmd,InputStream>
com.github.dockerjava.core.command.PushImageCmdImpl
- All Implemented Interfaces:
- DockerCmd<InputStream>, PushImageCmd
public class PushImageCmdImpl
- extends AbstrAuthCfgDockerCmd<PushImageCmd,InputStream>
- implements PushImageCmd
Push the latest image to the repository.
PushImageCmdImpl
public PushImageCmdImpl(PushImageCmd.Exec exec,
String name)
getName
public String getName()
- Specified by:
getName
in interface PushImageCmd
withName
public PushImageCmd withName(String name)
- Specified by:
withName
in interface PushImageCmd
- Parameters:
name
- The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.
toString
public String toString()
- Overrides:
toString
in class Object
exec
public InputStream exec()
throws NotFoundException
- Specified by:
exec
in interface DockerCmd<InputStream>
- Specified by:
exec
in interface PushImageCmd
- Overrides:
exec
in class AbstrDockerCmd<PushImageCmd,InputStream>
- Throws:
NotFoundException
- No such image
Copyright © 2014. All rights reserved.