Commit Graph

3997 Commits

Author SHA1 Message Date
8af6b6b3cd Fix some problems with image remove force.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 676b71eaaa
Component: cli
2017-06-13 12:12:54 -07:00
59b1e60ea5 Fix remove_test output duplication
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: dd924ebf4f
Component: cli
2017-06-13 14:02:56 +02:00
f30d636fb1 Merge pull request #160 from e11137/master
fixes #46 Always exit 0 when remove image with force option
Upstream-commit: ecc8e0a204
Component: cli
2017-06-13 14:02:02 +02:00
10e0cc84e6 Merge pull request #157 from dnephin/make-compose-check-fail
Fix check-git-diff in CI
Upstream-commit: 8545341709
Component: cli
2017-06-12 17:15:35 -07:00
88e6e57d65 Merge pull request #175 from dnephin/golang-version
Print CircleCI docker version
Upstream-commit: f82f61efc6
Component: cli
2017-06-10 15:03:07 +02:00
159c952b6f Merge pull request #173 from StefanScherer/update-golang-1.8.3
Update golang 1.8.3
Upstream-commit: 6a963c5cbe
Component: cli
2017-06-09 15:10:04 -07:00
1a30bcfcf2 Add a docker version print to CI
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: cda8281da8
Component: cli
2017-06-09 15:54:09 -04:00
e9ff960979 Update golang 1.8.3
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
Upstream-commit: b38c49411b
Component: cli
2017-06-09 21:43:00 +02:00
2810834b91 Merge pull request #172 from adshmh/fix-secret-remove-testcase-error-message-leak
fixed the output leak from the error test case for secret/remove command
Upstream-commit: dd585ad4fb
Component: cli
2017-06-09 21:03:33 +02:00
15c3a892ca fixed the output leak from secret/remove command error test case
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 77062a09dc
Component: cli
2017-06-09 13:21:14 -04:00
2180c64b2f removed the output leaked from stack remove error test case
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
Upstream-commit: 852bf0f96d
Component: cli
2017-06-09 12:14:18 -04:00
81261f8161 Merge pull request #166 from thaJeztah/update-term
Bump docker/docker to cd35e4beee13a7c193e2a89008cd87d38fcd0161
Upstream-commit: a74e715b1a
Component: cli
2017-06-08 13:45:32 -07:00
92da3a16e3 Merge pull request #121 from nishanttotla/digest-pinning-stack-deploy
Enable client side digest pinning for stack deploy
Upstream-commit: 4d980880f3
Component: cli
2017-06-08 23:20:02 +03:00
e390db6238 Move IsArchive and HeaderSize to build/context
Previously these were in docker/docker/pkg/archive, but unused

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 0310de5213
Component: cli
2017-06-08 16:08:11 -04:00
501eac5305 Update version to 17.07-dev
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 75238f3aa9
Component: cli
2017-06-08 21:45:37 +02:00
a2df58226d Always exit whith -1 when remove image with force option
Signed-off-by: Rogelio Canedo <rcanedo@mappy.priv>
Upstream-commit: 5c8d702af5
Component: cli
2017-06-08 20:15:37 +02:00
696660014b Bump docker/docker to cd35e4beee13a7c193e2a89008cd87d38fcd0161
Reverts changes in pkg/term related to `OPOST` that pulled in through;
3574e6a674

And reverted upstream in;
cd35e4beee

Full diff;
c8141a1fb1...cd35e4beee

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: efd11bf69d
Component: cli
2017-06-08 16:27:49 +02:00
8b832283fa Merge pull request #111 from keloyang/attach-restarting-check
Add a restarting check to runAttach
Upstream-commit: ab3ea637b6
Component: cli
2017-06-08 12:53:15 +02:00
ce2ce71b2e Merge pull request #163 from vdemeester/export-convertservice
Update ConvertService for external usage 👼
Upstream-commit: c944d20b1f
Component: cli
2017-06-08 10:55:56 +02:00
ba21fcb357 Update ConvertService for external usage 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 96dc07a8cf
Component: cli
2017-06-08 10:44:05 +02:00
b190ae1082 Add a restarting check to runAttach
Signed-off-by: Shukui Yang <yangshukui@huawei.com>
Upstream-commit: 90f497302f
Component: cli
2017-06-08 07:12:39 +08:00
8d3a4135a1 Replace command.DockerCli to command.Cli in docker attach/exec command
Signed-off-by: Shukui Yang <yangshukui@huawei.com>
Upstream-commit: e8cc2cf760
Component: cli
2017-06-08 07:03:52 +08:00
31ea0d23c1 Change --no-resolve-image flag to --resolve-image string flag
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
Upstream-commit: f790e839fc
Component: cli
2017-06-07 12:30:11 -07:00
e0b0f9479e Enable client side digest pinning for stack deploy
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
Upstream-commit: 9f1bea2657
Component: cli
2017-06-07 12:30:11 -07:00
b25d5c64ec Merge pull request #162 from vdemeester/150-configs-fixes-on-old-daemon
Handle case of configs on old daemon
Upstream-commit: 08cb0bddfd
Component: cli
2017-06-07 12:18:32 -07:00
1b8c1463bf Merge pull request #145 from dnephin/improve-compose-secrets-errors
Compose: Improve error messages when resource create/update fails
Upstream-commit: 9d12d6fc87
Component: cli
2017-06-07 18:51:10 +03:00
77734a6c63 Merge pull request #161 from vdemeester/update-codecov-threshold
Update codecov project threshold to 15%
Upstream-commit: 230b9eaf1a
Component: cli
2017-06-07 11:13:19 -04:00
85d6b4b742 Handle case of configs on old daemon
If configs are declared for a service and pointing on an old
daemon, error out properly (instead of "page not found").

If there is no configs declared, don't call convertServiceConfigObjs
to avoid having an error.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: cf5550c426
Component: cli
2017-06-07 17:02:46 +02:00
d8fa98915a Update codecov project threshold to 15%
That way, the build will fail less.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: a132733939
Component: cli
2017-06-07 13:26:24 +02:00
6125da9d13 Merge pull request #155 from vdemeester/fix-and-update-vendor
Update vendoring of docker/docker
Upstream-commit: 583ed2e3be
Component: cli
2017-06-07 14:25:57 +03:00
3b7dc655ab Fix check-git-diff so that it fails on CI
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: f75a44ffd8
Component: cli
2017-06-06 15:06:34 -04:00
9b7bef68dd fix manpages script
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: dc81def89c
Component: cli
2017-06-06 05:00:10 +00:00
a920b458df Update vendoring of docker/docker
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 44ac80881f
Component: cli
2017-06-06 00:23:21 +02:00
4bf796daf6 Add scripts and targets for manpages and yamldocs
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: ff615dbc4d
Component: cli
2017-06-05 19:10:44 +00:00
2764166c95 Merge pull request #147 from tiborvass/import-man-docs-completion
Import man docs completion
Upstream-commit: d95fd2f38c
Component: cli
2017-06-02 12:36:15 -07:00
ae4b9d3f19 Remove old manpage generation dockerfiles and glide config.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: d2976d599f
Component: cli
2017-06-02 12:00:23 -04:00
ffaa61dd2d Add missing dependencies to vendor, and fix generation imports
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 875daf0130
Component: cli
2017-06-02 11:12:43 -04:00
481488ba68 Merge pull request #143 from thaJeztah/remove-email-flag
Remove deprecated -e/--email flag from docker login
Upstream-commit: a0066a150b
Component: cli
2017-06-02 08:56:07 +02:00
7ff65f2f57 Revert docs/yaml removal
This reverts commit 3e911ff825.
Upstream-commit: d2cb97e76d
Component: cli
2017-06-02 00:25:19 +00:00
c00aa61dd9 Import completion scripts, docs, and man pages from docker/docker
Upstream-commit: ca8303e325
Component: cli
2017-06-02 00:17:20 +00:00
5cb40a7620 Docs and manual changes
- for service create on node-local networks

Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: cccd6379b7
Component: cli
2017-06-02 00:11:05 +00:00
eeb4b8935d Update ContainerWait API
This patch adds the untilRemoved option to the ContainerWait API which
allows the client to wait until the container is not only exited but
also removed.

This patch also adds some more CLI integration tests for waiting for a
created container and waiting with the new --until-removed flag.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Handle detach sequence in CLI

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Update Container Wait Conditions

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Apply container wait changes to API 1.30

The set of changes to the containerWait API missed the cut for the
Docker 17.05 release (API version 1.29). This patch bumps the version
checks to use 1.30 instead.

This patch also makes a minor update to a testfile which was added to
the builder/dockerfile package.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Remove wait changes from CLI

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Address minor nits on wait changes

- Changed the name of the tty Proxy wrapper to `escapeProxy`
- Removed the unnecessary Error() method on container.State
- Fixes a typo in comment (repeated word)

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Use router.WithCancel in the containerWait handler

This handler previously added this functionality manually but now uses
the existing wrapper which does it for us.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Add WaitCondition constants to api/types/container

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Address more ContainerWait review comments

- Update ContainerWait backend interface to not return pointer values
  for container.StateStatus type.
- Updated container state's Wait() method comments to clarify that a
  context MUST be used for cancelling the request, setting timeouts,
  and to avoid goroutine leaks.
- Removed unnecessary buffering when making channels in the client's
  ContainerWait methods.
- Renamed result and error channels in client's ContainerWait methods
  to clarify that only a single result or error value would be sent
  on the channel.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Move container.WaitCondition type to separate file

... to avoid conflict with swagger-generated code for API response

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)

Address more ContainerWait review comments

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
Upstream-commit: a49573e5fb
Component: cli
2017-06-02 00:11:05 +00:00
eee5a1ca7f Document the swarm root CA rotation CLI command.
Signed-off-by: Ying Li <ying.li@docker.com>
Upstream-commit: e1cd83f28a
Component: cli
2017-06-02 00:11:05 +00:00
8fabd69470 Add daemon option to push foreign layers
The --allow-nondistributable-artifacts daemon option specifies
registries to which foreign layers should be pushed.  (By default,
foreign layers are not pushed to registries.)

Additionally, to make this option effective, foreign layers are now
pulled from the registry if possible, falling back to the URLs in the
image manifest otherwise.

This option is useful when pushing images containing foreign layers to a
registry on an air-gapped network so hosts on that network can pull the
images without connecting to another server.

Signed-off-by: Noah Treuhaft <noah.treuhaft@docker.com>
Upstream-commit: 9810554494
Component: cli
2017-06-02 00:11:05 +00:00
1d4d33c8f3 Update the CLI docs to display whether a root rotation is in progress
when viewing system info, and TLS info when displaying node info.

Signed-off-by: Ying Li <ying.li@docker.com>
Upstream-commit: 42ec86ae9b
Component: cli
2017-06-02 00:11:05 +00:00
079ddc4784 docs: add missing cache-from man docs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: bc5fca913b
Component: cli
2017-06-02 00:11:05 +00:00
e28d94d143 docs: add docs for build —target
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: d50472f52b
Component: cli
2017-06-02 00:11:05 +00:00
0e345f3249 Allow checking out any ref in gitutils
Also changes so that shallow fetch is performed
even when a specific ref is specified.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 48ba755c3b
Component: cli
2017-06-02 00:11:05 +00:00
57eca1a73e Document arg before from
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: c6e78b9c5f
Component: cli
2017-06-02 00:11:05 +00:00
c564ad3f69 Add support for metrics plugins
Allows for a plugin type that can be used to scrape metrics.
This is useful because metrics are not neccessarily at a standard
location... `--metrics-addr` must be set, and must currently be a TCP
socket.
Even if metrics are done via a unix socket, there's no guarentee where
the socket may be located on the system, making bind-mounting such a
socket into a container difficult (and racey, failure-prone on daemon
restart).

Metrics plugins side-step this issue by always listening on a unix
socket and then bind-mounting that into a known path in the plugin
container.

Note there has been similar work in the past (and ultimately punted at
the time) for consistent access to the Docker API from within a
container.

Why not add metrics to the Docker API and just provide a plugin with
access to the Docker API? Certainly this can be useful, but gives a lot
of control/access to a plugin that may only need the metrics. We can
look at supporting API plugins separately for this reason.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: d8e04f68d3
Component: cli
2017-06-02 00:11:05 +00:00