You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/vendor/github.com/docker/docker/client
ulyssessouza 9f4f945d4f Bump docker/docker and containerd/console
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
5 years ago
..
README.md vendor: initial vendor 6 years ago
build_cancel.go vendor: update moby 6 years ago
build_prune.go vendor: update moby 6 years ago
checkpoint_create.go vendor: initial vendor 6 years ago
checkpoint_delete.go vendor: initial vendor 6 years ago
checkpoint_list.go vendor: update moby 6 years ago
client.go Bump docker/docker and containerd/console 5 years ago
client_deprecated.go vendor: initial vendor 6 years ago
client_unix.go vendor: initial vendor 6 years ago
client_windows.go vendor: initial vendor 6 years ago
config_create.go vendor: update moby 6 years ago
config_inspect.go vendor: update moby 6 years ago
config_list.go vendor: update moby 6 years ago
config_remove.go vendor: update moby 6 years ago
config_update.go vendor: initial vendor 6 years ago
container_attach.go vendor: initial vendor 6 years ago
container_commit.go vendor: update moby 6 years ago
container_copy.go vendor: update moby 6 years ago
container_create.go vendor: update moby 6 years ago
container_diff.go vendor: update moby 6 years ago
container_exec.go vendor: update moby 6 years ago
container_export.go vendor: initial vendor 6 years ago
container_inspect.go vendor: update moby 6 years ago
container_kill.go vendor: initial vendor 6 years ago
container_list.go Bump docker/docker and containerd/console 5 years ago
container_logs.go vendor: initial vendor 6 years ago
container_pause.go vendor: initial vendor 6 years ago
container_prune.go vendor: update moby 6 years ago
container_remove.go vendor: update moby 6 years ago
container_rename.go vendor: initial vendor 6 years ago
container_resize.go vendor: initial vendor 6 years ago
container_restart.go vendor: initial vendor 6 years ago
container_start.go vendor: initial vendor 6 years ago
container_stats.go vendor: initial vendor 6 years ago
container_stop.go vendor: initial vendor 6 years ago
container_top.go vendor: update moby 6 years ago
container_unpause.go vendor: initial vendor 6 years ago
container_update.go vendor: update moby 6 years ago
container_wait.go vendor: initial vendor 6 years ago
disk_usage.go vendor: update moby 6 years ago
distribution_inspect.go vendor: update moby 6 years ago
errors.go vendor: initial vendor 6 years ago
events.go Bump docker/docker and containerd/console 5 years ago
hijack.go Bump docker/docker and containerd/console 5 years ago
image_build.go vendor: initial vendor 6 years ago
image_create.go vendor: initial vendor 6 years ago
image_history.go vendor: update moby 6 years ago
image_import.go vendor: initial vendor 6 years ago
image_inspect.go vendor: update moby 6 years ago
image_list.go Bump docker/docker and containerd/console 5 years ago
image_load.go vendor: initial vendor 6 years ago
image_prune.go vendor: update moby 6 years ago
image_pull.go vendor: initial vendor 6 years ago
image_push.go vendor: initial vendor 6 years ago
image_remove.go vendor: update moby 6 years ago
image_save.go vendor: initial vendor 6 years ago
image_search.go vendor: update moby 6 years ago
image_tag.go vendor: initial vendor 6 years ago
info.go vendor: update moby 6 years ago
interface.go vendor: update moby 6 years ago
interface_experimental.go vendor: initial vendor 6 years ago
interface_stable.go vendor: initial vendor 6 years ago
login.go vendor: update moby 6 years ago
network_connect.go vendor: initial vendor 6 years ago
network_create.go vendor: update moby 6 years ago
network_disconnect.go vendor: initial vendor 6 years ago
network_inspect.go vendor: update moby 6 years ago
network_list.go Bump docker/docker and containerd/console 5 years ago
network_prune.go vendor: update moby 6 years ago
network_remove.go vendor: update moby 6 years ago
node_inspect.go vendor: update moby 6 years ago
node_list.go vendor: update moby 6 years ago
node_remove.go vendor: update moby 6 years ago
node_update.go vendor: initial vendor 6 years ago
options.go vendor: update docker/cli (ab688a9a79a1) and docker/docker (3998dffb806f) 6 years ago
ping.go Bump docker/docker and containerd/console 5 years ago
plugin_create.go vendor: update moby 6 years ago
plugin_disable.go vendor: initial vendor 6 years ago
plugin_enable.go vendor: initial vendor 6 years ago
plugin_inspect.go vendor: update moby 6 years ago
plugin_install.go vendor: initial vendor 6 years ago
plugin_list.go Bump docker/docker and containerd/console 5 years ago
plugin_push.go vendor: initial vendor 6 years ago
plugin_remove.go vendor: update moby 6 years ago
plugin_set.go vendor: initial vendor 6 years ago
plugin_upgrade.go vendor: initial vendor 6 years ago
request.go Bump docker/docker and containerd/console 5 years ago
secret_create.go vendor: update moby 6 years ago
secret_inspect.go vendor: update moby 6 years ago
secret_list.go vendor: update moby 6 years ago
secret_remove.go vendor: update moby 6 years ago
secret_update.go vendor: initial vendor 6 years ago
service_create.go Bump docker/docker and containerd/console 5 years ago
service_inspect.go vendor: update moby 6 years ago
service_list.go Bump docker/docker and containerd/console 5 years ago
service_logs.go vendor: initial vendor 6 years ago
service_remove.go vendor: update moby 6 years ago
service_update.go vendor: update moby 6 years ago
swarm_get_unlock_key.go vendor: update moby 6 years ago
swarm_init.go vendor: update moby 6 years ago
swarm_inspect.go vendor: update moby 6 years ago
swarm_join.go vendor: initial vendor 6 years ago
swarm_leave.go vendor: initial vendor 6 years ago
swarm_unlock.go vendor: initial vendor 6 years ago
swarm_update.go vendor: initial vendor 6 years ago
task_inspect.go vendor: update moby 6 years ago
task_list.go vendor: update moby 6 years ago
task_logs.go vendor: initial vendor 6 years ago
transport.go vendor: initial vendor 6 years ago
utils.go vendor: initial vendor 6 years ago
version.go vendor: update moby 6 years ago
volume_create.go vendor: update moby 6 years ago
volume_inspect.go vendor: update moby 6 years ago
volume_list.go Bump docker/docker and containerd/console 5 years ago
volume_prune.go vendor: update moby 6 years ago
volume_remove.go vendor: update moby 6 years ago

README.md

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.