debian-forge-composer/vendor/github.com/docker/docker/client
Tomáš Hozza 8514c95837 Update 'images' to v0.113.0
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2025-02-03 19:58:37 +01:00
..
build_cancel.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
build_prune.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
checkpoint_create.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
checkpoint_delete.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
checkpoint_list.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
client.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
client_deprecated.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
client_unix.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
client_windows.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
config_create.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
config_inspect.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
config_list.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
config_remove.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
config_update.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_attach.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_commit.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_copy.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
container_create.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
container_diff.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_exec.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
container_export.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_kill.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_list.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_logs.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_pause.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_prune.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
container_remove.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_rename.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_resize.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_restart.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
container_start.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
container_stats.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
container_stop.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
container_top.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_unpause.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_update.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
container_wait.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
disk_usage.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
distribution_inspect.go go.mod: update osbuild/images to v0.69.0 2024-07-04 19:01:07 +02:00
envvars.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
errors.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
events.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
hijack.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
image_build.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
image_create.go go.mod: update osbuild/images to v0.69.0 2024-07-04 19:01:07 +02:00
image_history.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
image_import.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
image_list.go Update 'images' to v0.113.0 2025-02-03 19:58:37 +01:00
image_load.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_prune.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_pull.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_push.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_remove.go go.mod: update osbuild/images to v0.69.0 2024-07-04 19:01:07 +02:00
image_save.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
image_search.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
image_tag.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
info.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
interface.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
interface_experimental.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
interface_stable.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
login.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
network_connect.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_create.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_disconnect.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_inspect.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_list.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_prune.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
network_remove.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
node_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
node_list.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
node_remove.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
node_update.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
options.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
ping.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
plugin_create.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_disable.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_enable.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_install.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
plugin_list.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_push.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
plugin_remove.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_set.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
plugin_upgrade.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
README.md go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
request.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
secret_create.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
secret_inspect.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
secret_list.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
secret_remove.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
secret_update.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
service_create.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
service_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
service_list.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
service_logs.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
service_remove.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
service_update.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
swarm_get_unlock_key.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_init.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_join.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_leave.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_unlock.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
swarm_update.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
task_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
task_list.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
task_logs.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02:00
utils.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
version.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
volume_create.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
volume_inspect.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
volume_list.go Port osbuild/images v0.33.0 with dot-notation to composer 2024-01-26 11:32:34 +01:00
volume_prune.go go.mod: update osbuild/images to v0.74.0 2024-08-07 12:06:28 +02:00
volume_remove.go build(deps): bump github.com/docker/docker 2024-05-02 16:32:35 +02:00
volume_update.go go.mod: bump osbuild/images to 0.55 2024-04-17 10:27:08 +02: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.