kaniko/vendor/github.com/docker/docker/client
Aaron Prindle 081269d8bb
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
..
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 Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
build_prune.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
checkpoint_create.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
checkpoint_delete.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
checkpoint_list.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.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_deprecated.go chore(deps): bump github.com/docker/docker (#2489) 2023-05-02 09:36:29 -07: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(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
config_inspect.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
config_list.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
config_remove.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
config_update.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
container_attach.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
container_commit.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
container_copy.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
container_create.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
container_diff.go chore: update gcr and docker cred helpers (#2910) 2023-12-19 12:36:13 -05:00
container_exec.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
container_export.go Updated vendor 2018-06-14 07:40:57 -07:00
container_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
container_kill.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
container_list.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
container_logs.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
container_pause.go Updated vendor 2018-06-14 07:40:57 -07:00
container_prune.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
container_remove.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
container_rename.go Updated vendor 2018-06-14 07:40:57 -07:00
container_resize.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
container_restart.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
container_start.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
container_stats.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
container_stop.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
container_top.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
container_unpause.go Updated vendor 2018-06-14 07:40:57 -07:00
container_update.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
container_wait.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
disk_usage.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
distribution_inspect.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
envvars.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
errors.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
events.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
hijack.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
image_build.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
image_create.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
image_history.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
image_import.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
image_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
image_list.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
image_load.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
image_prune.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
image_pull.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
image_push.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
image_remove.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
image_save.go Updated vendor 2018-06-14 07:40:57 -07:00
image_search.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
image_tag.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
info.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
interface.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
interface_experimental.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
interface_stable.go Updated vendor 2018-06-14 07:40:57 -07:00
login.go chore: update gcr and docker cred helpers (#2910) 2023-12-19 12:36:13 -05:00
network_connect.go Updated vendor 2018-06-14 07:40:57 -07:00
network_create.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
network_disconnect.go Updated vendor 2018-06-14 07:40:57 -07:00
network_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
network_list.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
network_prune.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
network_remove.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
node_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
node_list.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
node_remove.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
node_update.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
options.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
ping.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
plugin_create.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
plugin_disable.go Updated vendor 2018-06-14 07:40:57 -07:00
plugin_enable.go Updated vendor 2018-06-14 07:40:57 -07:00
plugin_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
plugin_install.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
plugin_list.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
plugin_push.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
plugin_remove.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
plugin_set.go Updated vendor 2018-06-14 07:40:57 -07:00
plugin_upgrade.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
request.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
secret_create.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
secret_inspect.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
secret_list.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
secret_remove.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
secret_update.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
service_create.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
service_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
service_list.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
service_logs.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
service_remove.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
service_update.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
swarm_get_unlock_key.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
swarm_init.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
swarm_inspect.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05: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 Updated vendor 2018-06-14 07:40:57 -07:00
swarm_update.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
task_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
task_list.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
task_logs.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
utils.go Updated vendor 2018-06-14 07:40:57 -07:00
version.go Bump github.com/docker/docker to latest release (#1866) 2022-01-14 15:58:32 -05:00
volume_create.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
volume_inspect.go Upgrade docker (#2440) 2023-03-23 20:34:25 -04:00
volume_list.go chore: update gcr and docker cred helpers (#2910) 2023-12-19 12:36:13 -05:00
volume_prune.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
volume_remove.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
volume_update.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

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.