Vincent Demeester
5709f8e422
Merge pull request #21092 from WeiZhang555/fix-21064-detach-keys
...
Client print error when specify wrong detach keys
2016-04-06 22:14:14 +02:00
Victor Vieux
68ade49ada
do not trim one char from {{.Names}} each time it is used in --format
...
Signed-off-by: Victor Vieux <vieux@docker.com >
2016-04-06 11:04:13 -07:00
Zhang Wei
91e5bb9541
Let client print error when speicify wrong detach keys
...
Fix #21064
Let client print error message explicitly when user specifies wrong
detach keys.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-04-04 15:35:55 +08:00
Robin Naundorf
737219bbdb
Fixing help text of "docker network --help" to be consistend
...
Changed from hashmap to multidimensional array as in "docker volume --help"
closes #21710
Signed-off-by: Robin Naundorf <r.naundorf@fh-muenster.de >
2016-04-01 14:14:09 +02:00
Sebastiaan van Stijn
4a7bd7eaef
Merge pull request #20410 from tkopczynski/20236-info-insecure-registry
...
Add insecure registries to docker info
2016-03-31 16:39:25 -07:00
cyli
df9cc3d922
Request pull credentials when using trusted reference
...
Signed-off-by: cyli <cyli@twistedmatrix.com >
2016-03-31 10:56:19 -07:00
Tomasz Kopczynski
44a50abe7b
Add insecure registries to docker info
...
Signed-off-by: Tomasz Kopczynski <tomek@kopczynski.net.pl >
2016-03-31 08:27:24 +02:00
allencloud
276a20dd42
upper case docker info details
...
Signed-off-by: allencloud <allen.sun@daocloud.io >
2016-03-28 18:47:04 +08:00
Vincent Demeester
8f4b7a3361
Removing DockerCli.pullImage as it's never used
...
This function is never used nor exported. It has been superseeded by
pullImageCustomOut.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2016-03-25 17:41:19 +01:00
Alexander Morozov
641bd7652f
Merge pull request #20589 from coolljt0725/fix_restore_terminal
...
cli: move setRawTerminal and restoreTerminal to holdHijackedConnection
2016-03-24 22:42:24 -07:00
Lei Jitang
66d3dcc6f7
cli: move setRawTerminal and restoreTerminal to holdHijackedConnection
...
In this way, we can restore the Terminal as soon as possible once the hijacked
connection end. This not only fix weird output if cli enable -D, but also
remove duplicate code.
Signed-off-by: Lei Jitang <leijitang@huawei.com >
2016-03-24 21:25:50 -04:00
Lei Jitang
cb5b8767b6
Cleanup: remove redundant period
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
2016-03-24 08:26:04 -04:00
Tibor Vass
8b8fcb796f
Merge pull request #21303 from riyazdf/notary-vendor-docker1.11
...
vendor notary for docker1.11
2016-03-22 17:57:17 -04:00
Tibor Vass
53d2e5e9d7
Merge pull request #21270 from ehazlett/resource-labels
...
Add Label support for Images (build), Networks and Volumes on Creation
2016-03-22 15:12:33 -04:00
Riyaz Faizullabhoy
ab3772f72f
vendor notary for docker1.11
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-22 11:28:19 -07:00
Evan Hazlett
fc214b4408
add label support for build, networks and volumes
...
build: implement --label
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
network: allow adding labels on create
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
volume: allow adding labels on create
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
add tests for build, network, volume
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
vendor: libnetwork and engine-api bump
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com >
2016-03-22 11:49:06 -04:00
Vincent Demeester
666563b190
Merge pull request #21046 from cyli/use-notary-cli
...
Sign all first-level delegation roles when doing a trusted push
2016-03-22 07:42:21 +01:00
Aaron Lehmann
c44e7a3e63
Pass upstream client's user agent through to registry on operations beyond pulls
...
This adds support for the passthrough on build, push, login, and search.
Revamp the integration test to cover these cases and make it more
robust.
Use backticks instead of quoted strings for backslash-heavy string
contstands.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2016-03-21 14:31:47 -07:00
Arnaud Porterie
278d3962a8
Merge pull request #21306 from mgoelzer/issue20001-nodeps
...
Pass upstream client's user agent through to registry on image pulls
2016-03-21 14:26:59 -07:00
cyli
623ccc2f31
Pull, Pull-A, and Build will only pull tags from the targets role or the targets/releases role.
...
It will ignore tags in all other delegation roles.
Signed-off-by: cyli <cyli@twistedmatrix.com >
2016-03-21 10:56:49 -07:00
Riyaz Faizullabhoy
ca57f4e6a8
Add test for targets/releases preference when pulling
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-21 10:56:42 -07:00
cyli
497a58e6e4
Trusted push now adds the tag to every first level delegation role for which we have keys
...
and for which the tag conforms to path restrictions.
Signed-off-by: cyli <cyli@twistedmatrix.com >
2016-03-21 10:56:09 -07:00
Antonio Murdaca
5008a34072
Merge pull request #21333 from cpuguy83/sigpipe
...
Don't forward SIGPIPE from client to container
2016-03-21 15:09:13 +01:00
Doug Davis
7942160638
Add the name of the exe that's trying to be executed
...
so that the user knows what's not in the container but should be.
Its not always easy for the user to know what exact command is being run
when the 'docker run' is embedded deep in something else, like a Makefile.
Saw this while dealing with the containerd migration.
Signed-off-by: Doug Davis <dug@us.ibm.com >
2016-03-20 18:15:46 -07:00
Mike Goelzer
d1502afb63
Pass upstream client's user agent through to registry on image pulls
...
Changes how the Engine interacts with Registry servers on image pull.
Previously, Engine sent a User-Agent string to the Registry server
that included only the Engine's version information. This commit
appends to that string the fields from the User-Agent sent by the
client (e.g., Compose) of the Engine. This allows Registry server
operators to understand what tools are actually generating pulls on
their registries.
Signed-off-by: Mike Goelzer <mgoelzer@docker.com >
2016-03-20 04:30:09 -07:00
Brian Goff
81707de23f
Don't forward SIGPIPE from client to container
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2016-03-18 16:50:18 -04:00
Tonis Tiigi
9c4570a958
Replace execdrivers with containerd implementation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com >
Signed-off-by: Anusha Ragunathan <anusha@docker.com >
2016-03-18 13:38:32 -07:00
Kenfe-Mickael Laventure
cb8cc56c22
Fix inspect to print bind mounts source path instead of an empty string
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com >
2016-03-17 15:42:45 -07:00
Alexander Morozov
04c7d94c71
Merge pull request #21273 from jfrazelle/remove-dead-code
...
remove dead code
2016-03-17 09:16:02 -07:00
David Calavera
b1e9a5eaf1
Merge pull request #21258 from runcom/res.body.leaks
...
*: fix response body leaks
2016-03-16 19:20:10 -07:00
Jessica Frazelle
8dd88afb5b
remove dead code
...
Signed-off-by: Jessica Frazelle <acidburn@docker.com >
2016-03-16 19:15:14 -07:00
Vincent Demeester
8567286ed6
Update api/client file to use context
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2016-03-16 20:25:09 +01:00
Antonio Murdaca
f0d83c4cdb
*: fix response body leaks
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com >
2016-03-16 17:15:42 +01:00
David Calavera
df20b5cfd3
Merge pull request #21002 from tonistiigi/fix-id-noprefix
...
Fix docker run for 64 byte hex ID
2016-03-14 10:17:38 -07:00
Vincent Demeester
b9361f02da
Merge pull request #20970 from dmcgowan/login-oauth
...
OAuth support for registries
2016-03-14 15:49:44 +01:00
Aleksa Sarai
084241a37b
client: stats: fill in stats info on client
...
This code was lost in a rebase in the PIDs cgroup merge, fix it so that
`docker stats` actually shows statistics from the PIDs cgroup.
Signed-off-by: Aleksa Sarai <asarai@suse.com >
2016-03-12 14:45:30 +11:00
Tonis Tiigi
16e4c4e481
Fix docker run for 64 byte hex ID
...
Fixes #20972
Also makes sure there is no check to registry if
no image is found for the prefixed IDs.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2016-03-11 10:02:47 -08:00
Alexander Morozov
943ae26bc0
Merge pull request #20958 from calavera/basic_function_templates
...
Provide basic string manipulation functions for template executions.
2016-03-10 08:08:32 -08:00
David Calavera
8514880997
Provide basic string manupilation functions for template executions.
...
This change centralizes the template manipulation in a single package
and adds basic string functions to their execution.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2016-03-09 19:37:12 -05:00
Aaron Lehmann
ba0aa5311a
Add support for identity tokens in client credentials store
...
Update unit test and documentation to handle the new case where Username
is set to <token> to indicate an identity token is involved.
Change the "Password" field in communications with the credential helper
to "Secret" to make clear it has a more generic purpose.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2016-03-09 13:47:57 -08:00
Aaron Lehmann
a6d0c66b4c
Change Docker client to support OAuth-based flow for login
...
This mechanism exchanges basic auth credentials for an identity token.
The identity token is used going forward to request scoped-down tokens
to use for registry operations.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com >
2016-03-09 13:47:57 -08:00
Derek McGowan
e896d1d7c4
Add support for identity token with token handler
...
Use token handler options for initialization.
Update auth endpoint to set identity token in response.
Update credential store to match distribution interface changes.
Signed-off-by: Derek McGowan <derek@mcgstyle.net > (github: dmcgowan)
2016-03-09 13:47:57 -08:00
Jessica Frazelle
69cf03700f
pids limit support
...
update bash commpletion for pids limit
update check config for kernel
add docs for pids limit
add pids stats
add stats to docker client
Signed-off-by: Jessica Frazelle <acidburn@docker.com >
2016-03-08 07:55:01 -08:00
Brian Goff
160abfbeea
Merge pull request #20803 from WeiZhang555/empty-stats-no-stream
...
Bug fix: stats --no-stream always print zero values
2016-03-05 08:47:41 -05:00
Zhang Wei
ea86c30a4a
Bug fix: stats --no-stream always print zero values
...
`docker stats --no-stream` always print zero values.
```
$ docker stats --no-stream
CONTAINER CPU % MEM USAGE / LIMIT MEM %
NET I/O BLOCK I/O
7f4ef234ca8c 0.00% 0 B / 0 B 0.00%
0 B / 0 B 0 B / 0 B
f05bd18819aa 0.00% 0 B / 0 B 0.00%
0 B / 0 B 0 B / 0 B
```
This commit will let docker client wait until it gets correct stat
data before print it on screen.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2016-03-05 13:22:26 +08:00
Antonio Murdaca
44b56341d9
Merge pull request #20943 from vdemeester/20942-fix-containerPsContext
...
Fix #20942 TestContainerPsContext unit test
2016-03-04 16:49:47 +01:00
Vincent Demeester
2787072a65
Try to fix #20942 TestContainerPsContext unit test
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2016-03-04 14:20:41 +01:00
Arnaud Porterie
52d4fff0d7
Merge pull request #20890 from riyazdf/notary-snapshot-remote
...
Rotate snapshot key to server when initializing new notary repos
2016-03-03 08:45:06 -08:00
Sebastiaan van Stijn
15e68dc8ee
Merge pull request #20863 from thaJeztah/add-kernel-memory-warning
...
Add KernelMemory to "info" and show warning
2016-03-03 13:14:51 +01:00
Riyaz Faizullabhoy
f75622e52a
Rotate snapshot key to server when initializing new notary repos
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2016-03-02 16:51:32 -08:00