docker_manager

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerManager = "[DockerManager]"
)

Variables

View Source
var DockerCli *docker.Client

Functions

func ContainerCreate

func ContainerCreate(c string) (types.IDResponse, error)

func ContainerInfo

func ContainerInfo(id string) (types.ContainerJSON, error)

func ContainerKill

func ContainerKill(id string) error

func ContainerList

func ContainerList() ([]types.Container, error)

ContainerList 返回容器列表 默认返回全部状态

func ContainerLogs

func ContainerLogs(id string) (io.ReadCloser, error)

func ContainerRemove

func ContainerRemove(id string) error

func ContainerRename

func ContainerRename(id string, name string) error

func ContainerRestart

func ContainerRestart(id string) error

func ContainerStart

func ContainerStart(id string) error

func ContainerStop

func ContainerStop(id string) error

func ImageInfo

func ImageInfo(id string) (types.ImageInspect, error)

func ImageList

func ImageList() ([]types.ImageSummary, error)

ImageList 列举全部镜像

func ImagePull

func ImagePull(ref string) (io.ReadCloser, error)

func ImageRemove

func ImageRemove(id string) ([]types.ImageDeleteResponseItem, error)

func InitDockerClient

func InitDockerClient()

InitDockerClient 初始化Docker连接

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL