Documentation ¶
Index ¶
- type Client
- func (x Client) ContainerRemove(ctx context.Context) error
- func (x Client) ContainerStop(ctx context.Context) error
- func (x Client) ImageBuild(ctx context.Context, contextDir, dockerfileName, imageName string, ...) error
- func (x Client) ImageInspect(ctx context.Context, imageName string) (*types.ImageInspect, error)
- func (x Client) ImagePull(ctx context.Context, imageName string, opts ...Option) error
- func (x Client) ImagePush(ctx context.Context, imageName string, opts ...Option) error
- func (x Client) ImageRemove(ctx context.Context, imageName string) error
- func (x Client) ImageSave(ctx context.Context, imageName, output string) error
- func (x Client) ImageTag(ctx context.Context, sourceTag, targetTag string) error
- func (x Client) ImagesSave(ctx context.Context, imageNames []string, output string) error
- func (x Client) RunContainer(ctx context.Context) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) ContainerRemove ¶
ContainerRemove remove container, like docker rm
func (Client) ContainerStop ¶
ContainerStop stop container, like docker stop
func (Client) ImageBuild ¶
func (x Client) ImageBuild(ctx context.Context, contextDir, dockerfileName, imageName string, opts ...Option) error
ImageBuild build an image, like docker build tag: Name and optionally a tag in the 'name:tag' format [reference] github.com/docker/cli/cli/command/image/build.go
func (Client) ImageInspect ¶
ImageInspect inspect image, like docker inspect imageId ...
func (Client) ImagePull ¶
ImagePull Pull an image, like docker pull [reference] github.com/docker/cli/cli/command/image/pull.go
func (Client) ImageRemove ¶
ImageRemove remove an image, like docker rmi
func (Client) ImagesSave ¶
ImagesSave save images, like docker save
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCompress ¶
func WithCompress() Option
func WithRegistryAuth ¶
Click to show internal directories.
Click to hide internal directories.