spiegel_podman/vendor/github.com/docker/docker/client
Valentin Rothberg 65a618886e new "image" mount type
Add a new "image" mount type to `--mount`.  The source of the mount is
the name or ID of an image.  The destination is the path inside the
container.  Image mounts further support an optional `rw,readwrite`
parameter which if set to "true" will yield the mount writable inside
the container.  Note that no changes are propagated to the image mount
on the host (which in any case is read only).

Mounts are overlay mounts.  To support read-only overlay mounts, vendor
a non-release version of Buildah.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-10-29 15:06:22 +01:00
..
build_cancel.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
build_prune.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
checkpoint_create.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
checkpoint_delete.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
checkpoint_list.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
client.go new "image" mount type 2020-10-29 15:06:22 +01:00
client_deprecated.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
client_unix.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
client_windows.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
config_create.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
config_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
config_list.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
config_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
config_update.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_attach.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_commit.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_copy.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_create.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
container_diff.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_exec.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_export.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_kill.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
container_logs.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_pause.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_prune.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_rename.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_resize.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_restart.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_start.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
container_stats.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
container_stop.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -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 Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
container_wait.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
disk_usage.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
distribution_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
errors.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
events.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
hijack.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
image_build.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_create.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04: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 c/buildah to v1.12.0 2019-12-19 18:17:23 +01:00
image_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
image_load.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
image_prune.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_pull.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_push.go update c/buildah to v1.12.0 2019-12-19 18:17:23 +01:00
image_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_save.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
image_search.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
image_tag.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
info.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
interface.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
interface_experimental.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
interface_stable.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
login.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
network_connect.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
network_create.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
network_disconnect.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
network_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
network_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
network_prune.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
network_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
node_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
node_list.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
node_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
node_update.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
options.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
ping.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09: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 Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
plugin_install.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
plugin_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
plugin_push.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
plugin_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
plugin_set.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
plugin_upgrade.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
README.md Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
request.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
secret_create.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
secret_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
secret_list.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
secret_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
secret_update.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
service_create.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09:00
service_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
service_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
service_logs.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
service_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
service_update.go update github.com/docker/docker and relevant deps 2020-09-18 02:22:25 +09: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 docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
task_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02: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 Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04:00
transport.go Vendor docker/docker, fsouza and more #2 2019-03-13 11:40:39 -04: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 Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
volume_inspect.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
volume_list.go Bump to Buildah v1.11.5 2019-11-13 10:57:19 -05:00
volume_prune.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
volume_remove.go Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +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 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.