runner/vendor/github.com/docker/docker/client
chenrui cf841846fd chore(deps): cleanup go.mod a little bit (#136)
* Upgrade docker to v19.03.7

* go mod vendor

* golangci-lint 1.23.8
2020-03-06 14:37:54 -08:00
..
build_cancel.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
build_prune.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
checkpoint_create.go fail on error (#20) 2019-01-23 11:51:22 -08:00
checkpoint_delete.go fail on error (#20) 2019-01-23 11:51:22 -08:00
checkpoint_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
client.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
client_deprecated.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
client_unix.go fail on error (#20) 2019-01-23 11:51:22 -08:00
client_windows.go fail on error (#20) 2019-01-23 11:51:22 -08:00
config_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
config_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
config_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
config_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
config_update.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_attach.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_commit.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_copy.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_diff.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_exec.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_export.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_kill.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_logs.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_pause.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_prune.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_rename.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_resize.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_restart.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_start.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_stats.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_stop.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_top.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_unpause.go fail on error (#20) 2019-01-23 11:51:22 -08:00
container_update.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
container_wait.go fail on error (#20) 2019-01-23 11:51:22 -08:00
disk_usage.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
distribution_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
errors.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
events.go fail on error (#20) 2019-01-23 11:51:22 -08:00
hijack.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_build.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_create.go fail on error (#20) 2019-01-23 11:51:22 -08:00
image_history.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_import.go fail on error (#20) 2019-01-23 11:51:22 -08:00
image_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_load.go fail on error (#20) 2019-01-23 11:51:22 -08:00
image_prune.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_pull.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_push.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_save.go fail on error (#20) 2019-01-23 11:51:22 -08:00
image_search.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
image_tag.go fail on error (#20) 2019-01-23 11:51:22 -08:00
info.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
interface.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
interface_experimental.go fail on error (#20) 2019-01-23 11:51:22 -08:00
interface_stable.go fail on error (#20) 2019-01-23 11:51:22 -08:00
login.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
network_connect.go fail on error (#20) 2019-01-23 11:51:22 -08:00
network_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
network_disconnect.go fail on error (#20) 2019-01-23 11:51:22 -08:00
network_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
network_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
network_prune.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
network_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
node_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
node_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
node_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
node_update.go fail on error (#20) 2019-01-23 11:51:22 -08:00
options.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
ping.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_disable.go fail on error (#20) 2019-01-23 11:51:22 -08:00
plugin_enable.go fail on error (#20) 2019-01-23 11:51:22 -08:00
plugin_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_install.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_push.go fail on error (#20) 2019-01-23 11:51:22 -08:00
plugin_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
plugin_set.go fail on error (#20) 2019-01-23 11:51:22 -08:00
plugin_upgrade.go fail on error (#20) 2019-01-23 11:51:22 -08:00
README.md chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
request.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
secret_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
secret_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
secret_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
secret_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
secret_update.go fail on error (#20) 2019-01-23 11:51:22 -08:00
service_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
service_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
service_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
service_logs.go fail on error (#20) 2019-01-23 11:51:22 -08:00
service_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
service_update.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
swarm_get_unlock_key.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
swarm_init.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
swarm_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
swarm_join.go fail on error (#20) 2019-01-23 11:51:22 -08:00
swarm_leave.go fail on error (#20) 2019-01-23 11:51:22 -08:00
swarm_unlock.go fail on error (#20) 2019-01-23 11:51:22 -08:00
swarm_update.go fail on error (#20) 2019-01-23 11:51:22 -08:00
task_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
task_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
task_logs.go fail on error (#20) 2019-01-23 11:51:22 -08:00
transport.go fail on error (#20) 2019-01-23 11:51:22 -08:00
utils.go fail on error (#20) 2019-01-23 11:51:22 -08:00
version.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
volume_create.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
volume_inspect.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
volume_list.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
volume_prune.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00
volume_remove.go chore(deps): cleanup go.mod a little bit (#136) 2020-03-06 14:37:54 -08:00

Go client for the Docker Engine API

The docker command uses this package to communicate with the daemon. It can also be used by your own Go applications to do anything the command-line interface does  running containers, pulling images, managing swarms, etc.

For example, to list running containers (the equivalent of docker ps):

package main

import (
	"context"
	"fmt"

	"github.com/docker/docker/api/types"
	"github.com/docker/docker/client"
)

func main() {
	cli, err := client.NewClientWithOpts(client.FromEnv)
	if err != nil {
		panic(err)
	}

	containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
	if err != nil {
		panic(err)
	}

	for _, container := range containers {
		fmt.Printf("%s %s\n", container.ID[:10], container.Image)
	}
}

Full documentation is available on GoDoc.