kaniko/vendor/github.com/docker/docker/client
Michael Plump 3e56c7fd0f
chore: upgrade all the dependencies to their latest versions (#3454)
* chore: go get -u ./...

* chore: go mod tidy

* chore: go mod vendor

* chore: fix compilation for buildkit >= 0.15.0

* chore: upgrade to Go 1.24

* chore: upgrade the Debian container used in an integration test
2025-05-21 09:31:10 -04:00
..
README.md chore(deps): bump github.com/moby/buildkit from 0.11.6 to 0.12.5, github.com/docker/docker from 24.0.7+incompatible to 25.0.2+incompatible, and other deps (#2995) 2024-02-09 18:03:08 -08:00
build_cancel.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
build_prune.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
checkpoint.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
checkpoint_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
checkpoint_delete.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
checkpoint_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
client.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
client_deprecated.go chore(deps): bump github.com/docker/docker (#2489) 2023-05-02 09:36:29 -07:00
client_interfaces.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
client_unix.go chore(deps): bump github.com/moby/buildkit from 0.11.6 to 0.12.5, github.com/docker/docker from 24.0.7+incompatible to 25.0.2+incompatible, and other deps (#2995) 2024-02-09 18:03:08 -08:00
client_windows.go chore: update gcr and docker cred helpers (#2910) 2023-12-19 12:36:13 -05:00
config_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
config_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
config_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
config_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
config_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_attach.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_commit.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_copy.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_diff.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_exec.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_export.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_kill.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_logs.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_pause.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_prune.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_rename.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_resize.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_restart.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_start.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_stats.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_stop.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_top.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_unpause.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
container_wait.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
disk_usage.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
distribution_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
envvars.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
errors.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
events.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
hijack.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_build.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_history.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_history_opts.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_import.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_inspect_opts.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_load.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_load_opts.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_prune.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_pull.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_push.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_save.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_save_opts.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_search.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
image_tag.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
info.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
login.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_connect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_disconnect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_prune.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
network_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
node_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
node_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
node_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
node_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
options.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
ping.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_create.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
plugin_disable.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_enable.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_install.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_push.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_set.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
plugin_upgrade.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
request.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
secret_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
secret_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
secret_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
secret_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
secret_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_logs.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
service_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
swarm_get_unlock_key.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
swarm_init.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
swarm_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
swarm_join.go Updated vendor 2018-06-14 07:40:57 -07:00
swarm_leave.go Updated vendor 2018-06-14 07:40:57 -07:00
swarm_unlock.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
swarm_update.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
task_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
task_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
task_logs.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
utils.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
version.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_create.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_inspect.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_list.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_prune.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_remove.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00
volume_update.go chore: upgrade all the dependencies to their latest versions (#3454) 2025-05-21 09:31:10 -04:00

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 all containers (the equivalent of docker ps --all):

package main

import (
	"context"
	"fmt"

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

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

	containers, err := apiClient.ContainerList(context.Background(), container.ListOptions{All: true})
	if err != nil {
		panic(err)
	}

	for _, ctr := range containers {
		fmt.Printf("%s %s (status: %s)\n", ctr.ID, ctr.Image, ctr.Status)
	}
}

Full documentation is available on pkg.go.dev.