The Docker CLI
Go to file
Jimmy Leger 11d471d660 Add 'docker service rollback' subcommand
Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Implement runRollback to not use runUpdate

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Add version tag and add flag quiet to suppress progress output

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Removed flags from warnDetachDefault

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Used command.Cli interface

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Add detach flag on rollback command

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Create a fakeClient for service commands

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Added unit test for rollback command

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Used command.Cli interface instead of *command.DockerCli in service commands

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Revert "Removed flags from warnDetachDefault"

This reverts commit 3e4f601c8a82cc2599a755dc693409bbc47917fc.

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Fixed test.NewFakeCli instanciation

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Removed unused receiver

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Replaced cli by dockerCli

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Revert "Removed unused receiver"

This reverts commit 604ef7c13df3d019949ca81d992db501114dafce.

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>

Fixed last typo

Signed-off-by: Jimmy Leger <jimmy.leger@gmail.com>
2017-08-16 22:18:36 +02:00
.github Add myself to command/stack codeowners 2017-07-20 12:05:20 -04:00
cli Add 'docker service rollback' subcommand 2017-08-16 22:18:36 +02:00
cmd/docker fixed the output leak from daemon unit tests 2017-06-27 14:22:49 -04:00
contrib/completion Improve bash completion for `stack deploy` 2017-08-08 17:56:14 +02:00
dockerfiles Add "build" dir to PATH in dev-container 2017-08-05 03:24:21 +02:00
docs Add 'docker service rollback' subcommand 2017-08-16 22:18:36 +02:00
experimental Fix Markdown formatting of experimental "stacks" 2017-06-20 15:15:08 -07:00
man Docs: update filter options for docker container ps 2017-07-27 22:10:26 +02:00
opts Add gosimple lint 2017-06-14 16:55:08 -07:00
scripts Merge pull request #354 from dnephin/warn-outside-container 2017-08-14 14:10:12 -04:00
templates Import `docker/docker/pkg/templates` to cli 2017-08-08 17:26:24 +02:00
vendor Re-run vndr on docker/docker to remove pkg/templates 2017-08-08 17:26:30 +02:00
.dockerignore make go build and docker build operations faster 2017-04-27 15:06:57 -07:00
.gitignore Add scripts and targets for manpages and yamldocs 2017-06-05 19:10:44 +00:00
CONTRIBUTING.md Add Contribution guidelines 2017-07-28 11:33:19 -07:00
LICENSE Add project files 2017-04-17 17:49:33 -04:00
MAINTAINERS Add project files 2017-04-17 17:49:33 -04:00
Makefile Add a warning when make is run outside of a container. 2017-07-26 15:58:15 -04:00
NOTICE Add project files 2017-04-17 17:49:33 -04:00
README.md Update README and add help target to make 2017-07-21 16:57:06 +01:00
VERSION Bump version to 17.08.0-dev 2017-07-22 03:13:52 +02:00
circle.yml Ignore codecov upload failures in CI. 2017-08-15 13:17:20 -04:00
codecov.yml Update codecov project threshold to 15% 2017-06-07 13:26:24 +02:00
docker.Makefile Add a warning when make is run outside of a container. 2017-07-26 15:58:15 -04:00
gometalinter.json Use a fork of gometalinter 2017-06-14 17:30:45 -07:00
poule.yml Add github templates and initial poule configuration 2017-05-09 16:57:46 +02:00
vendor.conf Merge pull request #319 from keloyang/bugfix-docker-cp 2017-07-26 11:56:12 -04:00

README.md

build status

docker/cli

This repository is the home of the cli used in the Docker CE and Docker EE products.

Development

docker/cli is developed using Docker.

Build a linux binary:

$ make -f docker.Makefile binary

Build binaries for all supported platforms:

$ make -f docker.Makefile cross

Run all linting:

$ make -f docker.Makefile lint

List all the available targets:

$ make help

In-container development environment

Start an interactive development environment:

$ make -f docker.Makefile shell

In the development environment you can run many tasks, including build binaries:

$ make binary

Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Docker may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

docker/cli is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.