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
Sebastiaan van Stijn 3003045c0b
vendor: github.com/docker/docker v24.0.5
- client: Client.postHijacked: use Client.buildRequest

full diff: https://github.com/moby/moby/compare/36e9e796c6fc...v24.0.5

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2 years ago
..
README.md vendor: initial vendor 6 years ago
build_cancel.go vendor: update buildkit to opentelemetry support 4 years ago
build_prune.go vendor: github.com/docker/docker v24.0.0 2 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 docker/cli to f1615fa 3 years ago
client.go vendor: github.com/docker/docker@24.0 36e9e79 2 years ago
client_deprecated.go vendor: github.com/docker/docker v23.0.6 2 years ago
client_unix.go vendor: github.com/docker/docker v24.0.0 2 years ago
client_windows.go vendor: github.com/docker/docker v24.0.0 2 years ago
config_create.go vendor: update buildkit to opentelemetry support 4 years ago
config_inspect.go vendor: update docker/cli to f1615fa 3 years ago
config_list.go vendor: update moby 6 years ago
config_remove.go vendor: update docker/cli to f1615fa 3 years ago
config_update.go vendor: update docker/cli to f1615fa 3 years ago
container_attach.go vendor: update docker/cli to f1615fa 3 years ago
container_commit.go vendor: update buildkit to opentelemetry support 4 years ago
container_copy.go vendor: update docker/cli to f1615fa 3 years ago
container_create.go vendor: github.com/docker/docker@24.0 36e9e79 2 years ago
container_diff.go vendor: github.com/docker/docker v24.0.0 2 years ago
container_exec.go vendor: update docker/cli to f1615fa 3 years ago
container_export.go vendor: initial vendor 6 years ago
container_inspect.go vendor: update docker/cli to f1615fa 3 years ago
container_kill.go vendor: update docker/cli to f1615fa 3 years ago
container_list.go vendor: update docker/cli to f1615fa 3 years ago
container_logs.go vendor: update docker/cli to f1615fa 3 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 docker/cli to f1615fa 3 years ago
container_rename.go vendor: initial vendor 6 years ago
container_resize.go vendor: initial vendor 6 years ago
container_restart.go vendor: update docker/cli to f1615fa 3 years ago
container_start.go vendor: initial vendor 6 years ago
container_stats.go vendor: fix docker/docker vendoring (update to 9f28837c1d93 4 years ago
container_stop.go vendor: update docker/cli to f1615fa 3 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 buildkit to opentelemetry support 4 years ago
container_wait.go vendor: github.com/docker/docker v23.0.0 2 years ago
disk_usage.go vendor: update buildkit 4 years ago
distribution_inspect.go vendor: github.com/docker/docker v24.0.0 2 years ago
envvars.go vendor: update docker/cli to f1615fa 3 years ago
errors.go vendor: github.com/docker/docker v24.0.0 2 years ago
events.go vendor: update buildkit to master@ae9d0f5 2 years ago
hijack.go vendor: github.com/docker/docker v24.0.5 2 years ago
image_build.go vendor: update buildkit to opentelemetry support 4 years ago
image_create.go vendor: github.com/docker/docker v24.0.0 2 years ago
image_history.go vendor: update moby 6 years ago
image_import.go vendor: update buildkit to opentelemetry support 4 years ago
image_inspect.go vendor: update docker/cli to f1615fa 3 years ago
image_list.go vendor: github.com/moby/buildkit v0.11.0-rc1.0.20221207183946-5993b526de65 2 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: github.com/docker/docker v24.0.0 2 years ago
image_remove.go vendor: update docker/cli to f1615fa 3 years ago
image_save.go vendor: initial vendor 6 years ago
image_search.go vendor: github.com/docker/docker v24.0.0 2 years ago
image_tag.go vendor: initial vendor 6 years ago
info.go vendor: update moby 6 years ago
interface.go vendor: github.com/docker/docker@24.0 36e9e79 2 years ago
interface_experimental.go vendor: initial vendor 6 years ago
interface_stable.go vendor: initial vendor 6 years ago
login.go vendor: github.com/docker/docker v24.0.0 2 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 docker/cli to f1615fa 3 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 docker/cli to f1615fa 3 years ago
node_inspect.go vendor: update docker/cli to f1615fa 3 years ago
node_list.go vendor: update moby 6 years ago
node_remove.go vendor: update docker/cli to f1615fa 3 years ago
node_update.go vendor: update docker/cli to f1615fa 3 years ago
options.go vendor: update buildkit to master@ae9d0f5 2 years ago
ping.go vendor: github.com/docker/docker v24.0.0 2 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 docker/cli to f1615fa 3 years ago
plugin_install.go vendor: github.com/docker/docker v24.0.0 2 years ago
plugin_list.go vendor: update docker/cli to f1615fa 3 years ago
plugin_push.go vendor: github.com/docker/docker v24.0.0 2 years ago
plugin_remove.go vendor: update docker/cli to f1615fa 3 years ago
plugin_set.go vendor: initial vendor 6 years ago
plugin_upgrade.go vendor: github.com/docker/docker v24.0.0 2 years ago
request.go vendor: github.com/docker/docker@24.0 36e9e79 2 years ago
secret_create.go vendor: update buildkit to opentelemetry support 4 years ago
secret_inspect.go vendor: update docker/cli to f1615fa 3 years ago
secret_list.go vendor: update moby 6 years ago
secret_remove.go vendor: update docker/cli to f1615fa 3 years ago
secret_update.go vendor: update docker/cli to f1615fa 3 years ago
service_create.go vendor: github.com/docker/docker v24.0.0 2 years ago
service_inspect.go vendor: update docker/cli to f1615fa 3 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 docker/cli to f1615fa 3 years ago
service_update.go vendor: github.com/docker/docker v24.0.0 2 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: update docker/cli to f1615fa 3 years ago
task_inspect.go vendor: update docker/cli to f1615fa 3 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 docker/cli to f1615fa 3 years ago
volume_inspect.go vendor: update docker/cli to f1615fa 3 years ago
volume_list.go vendor: github.com/docker/docker v24.0.0 2 years ago
volume_prune.go vendor: update moby 6 years ago
volume_remove.go vendor: update docker/cli to f1615fa 3 years ago
volume_update.go vendor: update docker/cli to f1615fa 3 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.