com.github.dockerjava.api.command
Interface PushImageCmd

All Superinterfaces:
DockerCmd<InputStream>
All Known Implementing Classes:
PushImageCmdImpl

public interface PushImageCmd
extends DockerCmd<InputStream>

Push the latest image to the repository.


Nested Class Summary
static interface PushImageCmd.Exec
           
 
Method Summary
 InputStream exec()
           
 AuthConfig getAuthConfig()
           
 String getName()
           
 String getTag()
           
 PushImageCmd withAuthConfig(AuthConfig authConfig)
           
 PushImageCmd withName(String name)
           
 PushImageCmd withTag(String tag)
           
 

Method Detail

getName

String getName()

getTag

String getTag()

withName

PushImageCmd withName(String name)
Parameters:
name - The name, e.g. "alexec/busybox" or just "busybox" if you want to default. Not null.

withTag

PushImageCmd withTag(String tag)
Parameters:
tag - The image's tag. Not null.

getAuthConfig

AuthConfig getAuthConfig()

withAuthConfig

PushImageCmd withAuthConfig(AuthConfig authConfig)

exec

InputStream exec()
                 throws NotFoundException
Specified by:
exec in interface DockerCmd<InputStream>
Throws:
NotFoundException - No such image


Copyright © 2014. All Rights Reserved.