spiegel_podman/vendor/github.com/docker/docker/client
renovate[bot] cbd650212a
fix(deps): update module github.com/docker/docker to v27.4.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 12:31:46 +00:00
..
build_cancel.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
build_prune.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
checkpoint_create.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
checkpoint_delete.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
checkpoint_list.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
client.go fix(deps): update module github.com/docker/docker to v27.4.0+incompatible 2024-12-09 17:34:36 +00:00
client_deprecated.go build(deps): bump github.com/docker/docker 2023-04-27 13:54:52 +00:00
client_unix.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
client_windows.go fix(deps): update module github.com/docker/docker to v24 2023-05-22 15:32:12 +02:00
config_create.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
config_inspect.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
config_list.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
config_remove.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
config_update.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_attach.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_commit.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_copy.go update to docker 27 2024-07-12 14:00:29 +02:00
container_create.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
container_diff.go fix(deps): update module github.com/docker/docker to v24 2023-05-22 15:32:12 +02:00
container_exec.go update to docker 27 2024-07-12 14:00:29 +02:00
container_export.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
container_kill.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
container_list.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_logs.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_pause.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_prune.go update to docker 27 2024-07-12 14:00:29 +02:00
container_remove.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_rename.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_resize.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_restart.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
container_start.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
container_stats.go update to docker 27 2024-07-12 14:00:29 +02:00
container_stop.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
container_top.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_unpause.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_update.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
container_wait.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
disk_usage.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
distribution_inspect.go Fix reference to deprecated types.Info 2024-03-27 08:17:10 -05:00
envvars.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
errors.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
events.go update to docker 27 2024-07-12 14:00:29 +02:00
hijack.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
image_build.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
image_create.go Fix reference to deprecated types.Info 2024-03-27 08:17:10 -05:00
image_history.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_import.go update to docker 27 2024-07-12 14:00:29 +02:00
image_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
image_list.go fix(deps): update module github.com/docker/docker to v27.2.0+incompatible 2024-08-27 21:19:26 +00:00
image_load.go update to docker 27 2024-07-12 14:00:29 +02:00
image_prune.go update to docker 27 2024-07-12 14:00:29 +02:00
image_pull.go update to docker 27 2024-07-12 14:00:29 +02:00
image_push.go update to docker 27 2024-07-12 14:00:29 +02:00
image_remove.go Fix reference to deprecated types.Info 2024-03-27 08:17:10 -05:00
image_save.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
image_search.go update to docker 27 2024-07-12 14:00:29 +02:00
image_tag.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
info.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
interface.go update to docker 27 2024-07-12 14:00:29 +02:00
interface_experimental.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
interface_stable.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
login.go fix(deps): update module github.com/docker/docker to v24 2023-05-22 15:32:12 +02:00
network_connect.go update to docker 27 2024-07-12 14:00:29 +02:00
network_create.go update to docker 27 2024-07-12 14:00:29 +02:00
network_disconnect.go update to docker 27 2024-07-12 14:00:29 +02:00
network_inspect.go update to docker 27 2024-07-12 14:00:29 +02:00
network_list.go update to docker 27 2024-07-12 14:00:29 +02:00
network_prune.go update to docker 27 2024-07-12 14:00:29 +02:00
network_remove.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
node_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
node_list.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
node_remove.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
node_update.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
options.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
ping.go fix(deps): update module github.com/docker/docker to v27.4.1+incompatible 2024-12-18 12:31:46 +00:00
plugin_create.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
plugin_disable.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
plugin_enable.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
plugin_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
plugin_install.go update to docker 27 2024-07-12 14:00:29 +02:00
plugin_list.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
plugin_push.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
plugin_remove.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
plugin_set.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
plugin_upgrade.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
README.md Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
request.go update to docker 27 2024-07-12 14:00:29 +02:00
secret_create.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
secret_inspect.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
secret_list.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
secret_remove.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
secret_update.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
service_create.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
service_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
service_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
service_logs.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
service_remove.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
service_update.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
swarm_get_unlock_key.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
swarm_init.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
swarm_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
swarm_join.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
swarm_leave.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
swarm_unlock.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
swarm_update.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
task_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
task_list.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
task_logs.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01:00
utils.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
version.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
volume_create.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
volume_inspect.go Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
volume_list.go fix(deps): update module github.com/docker/docker to v24 2023-05-22 15:32:12 +02:00
volume_prune.go update to docker 27 2024-07-12 14:00:29 +02:00
volume_remove.go CVE-2024-1753 fix for main 2024-03-18 16:30:07 -04:00
volume_update.go Update module github.com/docker/docker to v25 2024-01-24 13:21:28 +01: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 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.