spiegel_podman/vendor/github.com/docker/docker/client
baude 45c745e0b0 vendor in latest docker package
Signed-off-by: baude <bbaude@redhat.com>

Closes: #1022
Approved by: baude
2018-06-28 20:28:38 +00:00
..
build_prune.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
checkpoint_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
checkpoint_delete.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
checkpoint_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
client.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
client_unix.go Vendor in lots of kubernetes stuff to shrink image size 2018-03-27 18:09:12 +00:00
client_windows.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
config_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
config_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
config_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
config_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
config_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_attach.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_commit.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
container_copy.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_create.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
container_diff.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_exec.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
container_export.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
container_kill.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_list.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_logs.go Vendor in lots of kubernetes stuff to shrink image size 2018-03-27 18:09:12 +00:00
container_pause.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_prune.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
container_rename.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_resize.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_restart.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_start.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_stats.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_stop.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_top.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_unpause.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
container_wait.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
disk_usage.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
distribution_inspect.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
errors.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
events.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
hijack.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
image_build.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
image_create.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
image_history.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_import.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
image_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
image_list.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_load.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_prune.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_pull.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
image_push.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
image_save.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
image_search.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
image_tag.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
info.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
interface.go vendor in latest docker package 2018-06-28 20:28:38 +00:00
interface_experimental.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
interface_stable.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
login.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_connect.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_disconnect.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
network_list.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_prune.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
network_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
node_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
node_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
node_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
node_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
ping.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
plugin_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_disable.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_enable.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
plugin_install.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
plugin_push.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
plugin_set.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
plugin_upgrade.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
README.md Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
request.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
secret_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
secret_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
secret_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
secret_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
secret_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
service_create.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
service_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
service_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
service_logs.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
service_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
service_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
session.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_get_unlock_key.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_init.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_inspect.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_join.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_leave.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_unlock.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swarm_update.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
task_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
task_list.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
task_logs.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
tlsconfig_clone.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
tlsconfig_clone_go17.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
transport.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
utils.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
version.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
volume_create.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
volume_inspect.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00:00
volume_list.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
volume_prune.go Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
volume_remove.go Use buildah commit and bud in podman 2018-04-27 20:51:07 +00: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.NewEnvClient()
	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.