Commit Graph

20449 Commits

Author SHA1 Message Date
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
86850a7309 Allow non-seccomp platforms to pass integration-cli tests
Since seccomp is still a configurable build-tag, add a requirements
entry for seccomp, as well as move seccomp tests to "_unix" given it
won't be applicable to other platforms at this time.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
Upstream-commit: 0433e3891532a9783b77d6b02c041bab359b0d91
Component: engine
2015-12-07 20:14:52 -05:00
3291c35ddf Merge pull request #18108 from phemmer/no-mtu-discovery
don't try to use default route MTU as container MTU
Upstream-commit: b36b4920399cc95e1b357f60aa738e84bd970f47
Component: engine
2015-12-08 00:26:29 +01:00
f20b52f333 don't try to use default route MTU as bridge MTU
Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com>
Upstream-commit: fd9d7c02fcc8edd73d056f56f17e5cfe1760495b
Component: engine
2015-12-07 17:32:51 -05:00
38a3ce820e Merge pull request #18476 from aaronlehmann/v1-push-size
Use DiffSize instead of Size in v1 push
Upstream-commit: 1f0886a71338339d6917953c5efb729f7491aa08
Component: engine
2015-12-07 14:09:14 -08:00
9fbd61f90d Fix flaky test TestLogsSince
This test can fail if it is run close to a second boundary:

    FAIL: docker_cli_logs_test.go:169: DockerSuite.TestLogsSince

    docker_cli_logs_test.go:183:
        c.Assert(out, checker.Not(checker.Contains), v,
    check.Commentf("unexpected log message returned, since=%v", since))
    ... obtained string = "" +
    ...     "2015-12-07T19:54:45.000551883Z 1449518084 log2\n" +
    ...     "2015-12-07T19:54:47.001310929Z 1449518086 log3\n"
    ... substring string = "log2"
    ... unexpected log message returned, since=1449518085

The problem is that it generates log lines using date +%s and uses that
timestamp as a reference for log filtering with (--since) later on in
the test. However, the timestamp that date +%s generates may not match
the log timestamp.

This commit changes the test to parse the log timestamp itself instead
of relying on a parallel timestamp.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 7ab0f9bf6142b828ac8972fae6cb8aabcaf1d742
Component: engine
2015-12-07 13:26:30 -08:00
8b7a15edb7 Use DiffSize instead of Size in v1 push
The v1 push code was querying the size of the layer chain up to the
layer it was pushing, rather than just that layer. This made the
progress indicator inaccurate.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 741924384ee7a617af1a0275e2dc674e86b9d0d9
Component: engine
2015-12-07 11:30:05 -08:00
d76bf17816 Merge pull request #18442 from MHBauer/move-configs
move configs structs to remove dependency on deamon
Upstream-commit: 41ae615aa13508b8f8958dc1c338fce5bccb8e6b
Component: engine
2015-12-07 13:38:43 -05:00
b12523fdf4 move configs structs to remove dependency on daemon
- Moved the following config structs to api/types
   - ContainerRmConfig
   - ContainerCommitConfig

Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
Upstream-commit: 63fb931a0b7298c6281898bcc5f53ab0655ad1a6
Component: engine
2015-12-07 09:03:25 -08:00