Drew Erny 4dcceaf70e Add support for task and arbitrary combo logs
Refactored the API to more easily accept new endpoints. Added REST,
client, and CLI endpoints for getting logs from a specific task. All
that is needed after this commit to enable arbitrary service log
selectors is a REST endpoint and handler.

Task logs can be retrieved by putting in a task ID at the CLI instead of
a service ID.

Signed-off-by: Drew Erny <drew.erny@docker.com>
2017-04-03 18:40:54 -07:00
2016-09-07 11:05:58 -07:00
2017-02-19 01:33:43 -08:00
2016-09-07 11:05:58 -07:00
2017-02-19 01:33:43 -08:00
2017-02-07 11:08:37 -08:00
2016-10-31 11:16:02 -04:00
2016-11-09 14:46:53 -08:00
2016-09-22 14:42:06 -04:00
2016-10-31 17:36:49 -04:00
2017-02-20 17:32:28 -05:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2016-09-07 11:05:58 -07:00
2017-01-26 14:07:44 -05:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2017-02-07 11:08:37 -08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-11-21 13:11:40 -08:00
2016-11-21 13:11:40 -08:00
2016-10-24 15:20:01 -07:00
2017-02-07 11:08:37 -08:00
2016-11-22 12:49:38 +00:00
2016-11-09 14:27:45 -05:00
2016-11-09 14:27:45 -05:00
2016-11-10 13:46:02 -08:00
2016-11-10 13:46:02 -08:00
2016-12-20 22:08:07 +08:00
2016-12-20 22:08:07 +08:00
2016-12-20 22:08:07 +08:00
2016-12-20 22:08:07 +08:00
2016-12-20 22:08:07 +08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -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.

Description
No description provided
Readme 72 MiB
Languages
Go 92%
Shell 5.5%
Dockerfile 1.1%
Go-Checksums 0.9%
Makefile 0.3%
Other 0.2%