Commit Graph

19103 Commits

Author SHA1 Message Date
964dd12e59 Create interface that clients that talk to the api must fulfill.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 8b15839ee85b291266d07f97d9ad6ca0326d1339
Component: engine
2015-12-09 12:04:58 -05:00
68562127c9 Fix client lib errors documentation.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: a413be33929a637d565687aa07805bfefca547e5
Component: engine
2015-12-09 12:04:58 -05:00
6cea97ec23 Implement docker volume with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 73bca058ae5d1e4ad2b94835fb1593ba3ca3983b
Component: engine
2015-12-09 12:04:58 -05:00
c10aeda8bb Use ensureReaderClosed consistently to close a response body reader.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 8c9c9e137c5c7a84ed4ac4459c52147daf8a2a80
Component: engine
2015-12-09 12:04:58 -05:00
bf3d33ff62 Implement getExitCode with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 7df71ca31dad5eb48093879730b4761b2109291e
Component: engine
2015-12-09 12:04:58 -05:00
8917bc241d Implement docker wait with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 51efb1480a58b2317e1ad1833964ccad4456e6be
Component: engine
2015-12-09 12:04:58 -05:00
b7a622c2a0 Implement docker version with standalone client lib.
Use Go template definitions for default format.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 1fe912151b9239b891b2da704c6ddcc6081fad2d
Component: engine
2015-12-09 12:04:58 -05:00
73385f6639 Implement docker unpause with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: b8be62e28eee322b791251f29595648f795efcb3
Component: engine
2015-12-09 12:04:57 -05:00
5787f4e76e Implement trusted tagging with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: d78ce02f881785ac5f2014673b6ee587f74d9279
Component: engine
2015-12-09 12:04:57 -05:00
bc2d9f28b4 Implement docker top with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 7573c153c5708091177aca058a3cc84a1ab58377
Component: engine
2015-12-09 12:04:57 -05:00
f0cc35a48e Implement docker tag with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 21ffdf0e0e402cfc00f2bb1476fb2a8510418ec0
Component: engine
2015-12-09 12:04:57 -05:00
e510756086 Implement docker stop with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 9ec1cf92f5fda4b5bae02408b469cf8f65c96f9a
Component: engine
2015-12-09 12:04:57 -05:00
0bbbaac94e Implement docker save with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 373f55eecd39625f9f2751d8f940e83a056b6261
Component: engine
2015-12-09 12:04:56 -05:00
30d4ac73f9 Implement docker rmi with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 37d6fee8cfddd8e1afabbdaa232fa64a36494579
Component: engine
2015-12-09 12:04:56 -05:00
8ab422b412 Implement docker remove with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: fb6533e6cf1793b653ab0ea9f12b6b6876076d97
Component: engine
2015-12-09 12:04:56 -05:00
74f650b8f2 Implement docker restart with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: b7de53634c3262997593d140c9b68683135b55e1
Component: engine
2015-12-09 12:04:56 -05:00
6f93333b24 Implement container rename with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: ac8fb77c7401d2d8cfd75bb8399b0f91484210ad
Component: engine
2015-12-09 12:04:56 -05:00
f66cc215ec Implement docker ps with standanlone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: d05aa418b0466553a24d42896f99176cfa29765f
Component: engine
2015-12-09 12:04:56 -05:00
70dcec6319 Implement docker port with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: eeee2eae8671ce05d863aadf289a0695ac62629b
Component: engine
2015-12-09 12:04:56 -05:00
4f50480c10 Implement docker pause with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 55333e8f9018585f28f13231a3073e2746d7c969
Component: engine
2015-12-09 12:04:56 -05:00
c8e481849e Implement docker network with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 356768bc01adc6d74e723397fbc3ac7efcb0af64
Component: engine
2015-12-09 12:04:55 -05:00
c95eea80e2 Implement docker logs with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 087674264674eaf946d185691ea92eee16f16a4f
Component: engine
2015-12-09 12:04:55 -05:00
da693b6423 Implement docker login with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: b36531db6020134c8b561db71a67c4346051ed4a
Component: engine
2015-12-09 12:04:55 -05:00
553ecd8cd0 Implement docker load with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 9073a52ea839ef224931e1105bfa9c715ee48e2c
Component: engine
2015-12-09 12:04:55 -05:00
8f23851d4e Implement docker kill with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: c57e62d00e209288e4f2734d32a3184b4abf4248
Component: engine
2015-12-09 12:04:55 -05:00
f60fb78ebb Implement docker build with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 535c4c9a59b1e58c897677d6948a595cb3d28639
Component: engine
2015-12-09 12:04:55 -05:00
80f8701c10 Implement docker info with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 900ad2897f58bffd2992c5fd8b1cd50cfb61198f
Component: engine
2015-12-09 12:04:54 -05:00
b2e5fbbc30 Implement docker import with the standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 6bf757500b404311cf24c6ce656d317f49b7cc37
Component: engine
2015-12-09 12:04:54 -05:00
b04e039159 Implement docker images with the standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 381262fbeab88f4195ec4d0ccd036e3233398204
Component: engine
2015-12-09 12:04:54 -05:00
b2a93e0881 Implement docker history with the standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 45eca43f5bead5d9d22e65e0609410b266c32e18
Component: engine
2015-12-09 12:04:54 -05:00
f30cba0e0e Implement docker export with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: e0549b8cebee4dbe8614688767c9b666afdd32d9
Component: engine
2015-12-09 12:04:54 -05:00
7d7225f7b4 Implement docker events with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 11c4cc9dded3aaed8be2fdcebc976b63ff80ef2c
Component: engine
2015-12-09 12:04:54 -05:00
dfebc5f6be Implement docker diff with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: e562ac42f445f01625f2e1fc220d1aae3a28b8e1
Component: engine
2015-12-09 12:04:53 -05:00
f0680b3c8f Implement docker container create with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 136e8fef64d3dd0e7601ffdad8864b8e1af7c7e5
Component: engine
2015-12-09 12:04:53 -05:00
4c16000788 Implement docker image create with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 1698fe01f58e090e736c611bc8c21e67544251e9
Component: engine
2015-12-09 12:04:53 -05:00
8c084aaa21 Implement docker cp with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 1b2b91ba43dc6fa1b4b758fc5a8090ce6cc597ff
Component: engine
2015-12-09 12:04:53 -05:00
536085eae2 Implement docker commit with standalone client lib.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 8c9ad7b818c0a7b1e39f8df1fabba243a0961c2d
Component: engine
2015-12-09 12:04:53 -05:00
6ac2615d60 Extract API client struct as standalone client.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 589df17a1a1dc649a4c3095cea6dd05e0c2a3bb5
Component: engine
2015-12-09 12:04:53 -05:00
c0f7df0a57 Merge pull request #18465 from albers/completion-network-disconnect-2
Improve bash completion for `docker network disconnect`
Upstream-commit: de7b80db0344a46ba948ce64df88017a69b6bfaa
Component: engine
2015-12-08 12:46:15 -08:00
baef4152d2 Merge pull request #18505 from estesp/overlay-userns-fix
Fix overlay + user namespaces underlay dir permissions
Upstream-commit: 81014900d5adeedf90ee6c90b5a79d19859b0958
Component: engine
2015-12-08 12:44:46 -08:00
8ac83c81d8 Merge pull request #18485 from aaronlehmann/errors-bounds-check
Add missing bounds check in ContinueOnError
Upstream-commit: 591493bfb56a3f7ad2338b7d6620ef8d631f21ef
Component: engine
2015-12-08 12:40:55 -08:00
6021acc699 Fix overlay and user namespace permissions
All underlay dirs need proper remapped ownership. This bug was masked by the
fact that the setupInitLayer code was chown'ing the dirs at startup
time. Since that bug is now fixed, it revealed this permissions issue.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
Upstream-commit: 191cefbaca45ba86341379d09d2f75d5fc1868fb
Component: engine
2015-12-08 14:28:28 -05:00
a08a354855 Add missing bounds in ContinueOnError
ContinueOnError assumes that something of type errcode.Errors contains
at least one error. This is generally true, but might not be true if the
remote registry returns an empty error body or invalid JSON. Add the
bounds check, and in the case where it fails, allow fallbacks to v1.

Fixes #18481

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 1ebfa299545e5c2273ce449d72b10745b9e38087
Component: engine
2015-12-08 09:54:20 -08:00
b3330dfcec Merge pull request #18479 from aaronlehmann/flaky-logs-test
Fix flaky test TestLogsSince
Upstream-commit: adb19755e1d0b6e2e7693ddb7932f26e63d1b0b5
Component: engine
2015-12-08 09:03:39 -08:00
6b0cda08d9 Merge pull request #18488 from aaronlehmann/docker-images-order
Make order of items in "docker images" deterministic
Upstream-commit: 6eeff9288b885a79f5d12a32190e6e66b08388e5
Component: engine
2015-12-08 15:35:59 +01:00
cca42f456f Merge pull request #18487 from clnperez/gccgo-seccomp-support
Add seccomp stuff for gccgo
Upstream-commit: 5c45f47f015270712a24e10e652f3e31a845cd34
Component: engine
2015-12-08 09:29:09 -05:00
8d35d12a65 Merge pull request #18432 from thaJeztah/docs-run-reference-fixups
docs: markdown and textual fixups in reference/run.md
Upstream-commit: 0d8c1a879734029bb9127d2bdabec187c6b4c897
Component: engine
2015-12-08 15:16:51 +01:00
23cd48101e Merge pull request #18483 from estesp/seccomp-test-requirement
Allow non-seccomp platforms to pass integration-cli tests
Upstream-commit: ee7a599351c71a408872d8b48473e217d6aafd91
Component: engine
2015-12-08 08:38:06 +01:00
bf0c0fe703 Make order of items in "docker images" deterministic
The server-side portion of "docker images" sorts the images it returns
by creation timestamp so the list keeps a consistent order. However, it
does not sort the RepoTags and RepoDigests lists that each image carries
along with it. Since items in these lists are populated from a map,
their order will vary. If the user has a collection of tags which point
to overlapping IDs, for example tags that point to the same images on
different registries, the order will fluctuate between invocations of
"docker images". This can be disorienting with a long list of images.

Sort these references at the tag store level, so that the tag store's
References call always returns references in a lexically sorted order.
As well as giving the tag store more deterministic behavior, doing it at
this level simplifies the tag store unit tests.

Do the same for the ReferencesByName call. This will make push-all-tags
iterate over the tags in a consistent order.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 6e37b622d39591038a4907ee7171a359076bc1db
Component: engine
2015-12-07 18:31:51 -08:00
90acef675d Add seccomp stuff for gccgo
Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
Upstream-commit: 8ce5d05492b27e2d27660ddc6d2292e3ee553607
Component: engine
2015-12-07 19:40:55 -06:00