Files
docker-cli/components/cli/vendor/github.com/docker/docker/client
Sebastiaan van Stijn 542cf421f5 Bump moby to 87df0e533b619c088091fd1e2310e92bb9a24822
Includes changes from;

- Add a LastTagTime for images (https://github.com/moby/moby/pull/31497)
- Fix handling of remote "git@" notation (https://github.com/moby/moby/pull/33696)
- Move some `api` package functions away (https://github.com/moby/moby/pull/33798) (related to https://github.com/docker/cli/pull/236)
- Set ping version even on error (https://github.com/moby/moby/pull/33827)
- Do not add duplicate platform information to service spec (https://github.com/moby/moby/pull/33867)
- Refactor MountPoint Setup function in volume.go (https://github.com/moby/moby/pull/33890)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 366d3ec971
Component: cli
2017-07-04 20:23:38 -07:00
..
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-05-11 13:42:46 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-06-23 11:34:22 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07:00
2017-05-17 11:44:54 -07:00
2017-05-08 10:33:56 -07:00
2017-05-08 10:33:56 -07: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.NewEnvClient()
	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.