The Docker CLI
Go to file
Sebastiaan van Stijn 2429f15672
Don't attempt to remove unsupported resources on older daemon
When running `docker stack rm <some stack>` against an older daemon,
a warning was printed for "configs" being ignored;

    WARNING: ignoring "configs" (requires API version 1.30, but the Docker daemon API version is 1.26)

Given that an old daemon cannot _have_ configs, there should not be
a need to warn, or _attempt_ to remove these resources.

This patch removes the warning, and skips fetching (and removing)
configs.

A check if _secrets_ are supported by the daemon is also added,
given that this would result in an error when attempted against
an older (pre 1.13) daemon.

There is one situation where this could lead to secrets or
configs being left behind; if the client is connecting to a
daemon that _does_ support secrets, configs, but the API version
is overridden using `DOCKER_API_VERSION`, no warning is printed,
and secrets and configs are not attempted to be removed.

Given that `DOCKER_API_VERSION` is regarded a feature for
debugging / "power users", it should be ok to ignore this.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-11 10:29:03 -07:00
.github Add github templates and initial poule configuration 2017-05-09 16:57:46 +02:00
cli Don't attempt to remove unsupported resources on older daemon 2017-07-11 10:29:03 -07:00
cmd/docker fixed the output leak from daemon unit tests 2017-06-27 14:22:49 -04:00
contrib/completion Remove bash completion for `service update --network` 2017-07-11 11:20:18 +02:00
dockerfiles pin vndr to 9909bb2b8a0b7ea464527b376dc50389c90df587 2017-07-10 14:31:57 -07:00
docs Fix typo (proceed -> precede) 2017-07-07 13:17:15 +02:00
experimental Fix Markdown formatting of experimental "stacks" 2017-06-20 15:15:08 -07:00
man Run docs and man generation in CI 2017-06-14 14:59:48 -07:00
opts Add gosimple lint 2017-06-14 16:55:08 -07:00
scripts Run docs and man generation in CI 2017-06-14 14:59:48 -07:00
vendor Revendor dependencies 2017-07-10 10:56:42 -07: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
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 fix manpages script 2017-06-06 05:00:10 +00:00
NOTICE Add project files 2017-04-17 17:49:33 -04:00
README.md Support running unit tests when files are saved. 2017-05-15 17:02:58 -04:00
VERSION Update version to 17.07-dev 2017-06-08 21:45:37 +02:00
circle.yml Use an image with git and ssh for circleCI 2017-06-22 19:51:36 -04:00
codecov.yml Update codecov project threshold to 15% 2017-06-07 13:26:24 +02:00
docker.Makefile Fix mounts for directories with weird chars 2017-06-21 17:47:40 -07: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 Bump moby to 87df0e533b619c088091fd1e2310e92bb9a24822 2017-07-04 20:23:38 -07: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

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.