1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00
Commit Graph

13651 Commits

Author SHA1 Message Date
Tibor Vass
b582bfa2e6 Merge pull request #11317 from zenlinTechnofreak/helpSuffixSpace
Help suffix space
Upstream-commit: 830544044edff87980a176d8984c1288822755cc
Component: engine
2015-03-11 10:04:23 -04:00
Tibor Vass
6cc0f5d3a1 Merge pull request #11316 from ahmetalpbalkan/win-cli/help-homepath-fix
Make use of %USERPROFILE% in cli help message
Upstream-commit: 1a5e46ce8957149d45eb8792254625ae696c8e4e
Component: engine
2015-03-11 09:28:43 -04:00
Zen Lin(Zhinan Lin)
8ea0c3c94e Add checking trailing space for all lines of the help output
Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
Upstream-commit: 491b63e0daa9103cf9471c03c4b41026f6955323
Component: engine
2015-03-11 21:24:30 +08:00
Phil Estes
cb89c142a6 Merge pull request #11244 from ChristopherBiscardi/docs-code-fixes
Fix a few code rendering errors in docs
Upstream-commit: 95dcb2748442fc1f59e8c2e010679e0aea3cef1c
Component: engine
2015-03-11 08:34:53 -04:00
Zen Lin(Zhinan Lin)
362dc0b239 Normalize the log for docker subcommand usage,
delete unecessary blank after "[OPTIONS] "
and add a blank to the log between options and signature.

To make the code style consistency.

Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
Upstream-commit: 2b051bcbda06ec48287e75da506bacf95be2b652
Component: engine
2015-03-11 18:58:32 +08:00
Zen Lin(Zhinan Lin)
8855da6111 Add the check for suffix of option in each line of help, to make sure no extra space in it
Signed-off-by: Zen Lin(Zhinan Lin) <linzhinan@huawei.com>
Upstream-commit: f63a29ddeee62c8e4fcb1cf8eaf84aff305380c0
Component: engine
2015-03-11 18:46:01 +08:00
Ahmet Alp Balkan
b147bc8ddc Make use of %USERPROFILE% in cli help message
An earlier commit was causing docker windows CLI build to not to pick up
the shorthand form for home directory (`%USERPROFILE%`) shown in when
`docker --help` is executed.

Fixing that bug and making the if statement concise and clear.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Upstream-commit: 802c90500073ad79e5a6520402ef2a7268c824b7
Component: engine
2015-03-11 02:14:49 -07:00
moxiegirl
e5672966b5 Merge pull request #11307 from moxiegirl/fix-contributors-logo
Fixing broken image thanks @SvenDowideit 
Upstream-commit: 558c3b09db41a26d77dae831f4d55ee6947a60e5
Component: engine
2015-03-10 22:48:10 -07:00
moxiegirl
0cbd226ff4 Merge pull request #10663 from brahmaroutu/events_filterbyname_10645
filter events by container name
Upstream-commit: dd6f76a76cb4e12d74fcd974ebd6a9c4f8d43751
Component: engine
2015-03-10 21:16:39 -07:00
moxiegirl
ac7c4b8d71 Merge pull request #11306 from x1022as/master
Fix minor typo
Upstream-commit: a58f0d47f364ab8e21c6ef42d3fc586f858b3566
Component: engine
2015-03-10 20:55:37 -07:00
Mary Anthony
8e14872373 Fixing broken image
Signed-off-by: Mary Anthony <mary.anthony@docker.com>
Upstream-commit: add13cb7827aace3a14d0ec251d6d5d41a0a6489
Component: engine
2015-03-10 20:47:06 -07:00
moxiegirl
70c93c9f6d Merge pull request #11263 from moxiegirl/edit-ilo-new-contribguide
Updating to account for new contributors guide.
Upstream-commit: c3c29284ae677ef0b48601d6d3934d1cd4112228
Component: engine
2015-03-10 20:36:51 -07:00
Deng Guangxing
b951eb79db Fix minor typo
Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
Upstream-commit: ce1a0b612d300210fadf12556e1b38885f098197
Component: engine
2015-03-11 11:13:39 +08:00
ChristoperBiscardi
6148a6ae03 Modify ip_forward instructions
Signed-off-by: ChristoperBiscardi <chris@docker.com>
Upstream-commit: 4ab18fa2ac119c26516f2156dabda9dd0a781301
Component: engine
2015-03-10 19:28:55 -07:00
Michael Crosby
365bb5f91c Merge pull request #10853 from rhatdan/audit_read
Need to support new linux capability AUDIT_READ
Upstream-commit: 2772a475199b4503212d7d02aa675aa4faed7304
Component: engine
2015-03-10 17:28:50 -07:00
Dan Walsh
8c914c9a0f Need to support new linux capability AUDIT_READ
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Upstream-commit: 72f366238f443f7cbbf4ada76bd5ab4b36495251
Component: engine
2015-03-10 20:01:06 -04:00
Mary Anthony
fbeafd00f2 Updating to account for new contributors guide.
Primary links will go to the contributor's guide
Adding in Fred's comments
Tweak list alignment

Signed-off-by: Mary Anthony <mary.anthony@docker.com>
Upstream-commit: 933f207fd8d413e6ba7fef283a0bf5bcfd923e9f
Component: engine
2015-03-10 13:30:46 -07:00
Alexander Morozov
f7f0283220 Merge pull request #11292 from jfrazelle/cleanup-defer
cleanup defer func
Upstream-commit: 13bfbfc84bd63fd2014bc6590a8a568c0560d5f8
Component: engine
2015-03-10 12:46:16 -07:00
Jessica Frazelle
ecba3551ba cleanup defer func
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <hugs@docker.com> (github: jfrazelle)
Upstream-commit: 17a784aa092fe2ccb6463e4e4d5e0ff5279b4efa
Component: engine
2015-03-10 12:18:43 -07:00
Jessie Frazelle
d3dac115e9 Merge pull request #11211 from cpuguy83/ensure_engine_shutdown
Ensure clean engine shutdown on startup errors
Upstream-commit: e4b753c1de558a07a8a079b39013677211badbd7
Component: engine
2015-03-10 12:13:35 -07:00
Jessie Frazelle
993f8d5799 Merge pull request #11235 from coolljt0725/fix_default_restart_name
Set default restart policy name to `no` Closes #10874
Upstream-commit: 7e47bb6effd1f076a78827543c4b4ce399c0ad1b
Component: engine
2015-03-10 12:12:40 -07:00
Jessie Frazelle
e6f3051dc3 Merge pull request #11288 from estesp/warn-on-localhost-dns
Add warning for --dns flag set to localhost addresses.
Upstream-commit: 8be1671f451079b3567689c19ccc310266d026cd
Component: engine
2015-03-10 12:03:46 -07:00
Phil Estes
53af0dd72f Add warning for --dns flag set to localhost addresses.
We should warn users who use the `--dns` command line option to point
DNS to a localhost address, either IPv4 or IPv6.  Unless they have
specifically set up the container as a DNS server or are using
--net=host (which is why this should be allowed, but warned on because
those are pretty unique cases) a localhost address as a resolver will
not reach what they might expect (e.g. expecting it will hit localhost
on the Docker daemon/host).

Added a test for the message, and fixed up tests to separate stdout and
stderr that were using `--dns=127.0.0.1` to test the options.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
Upstream-commit: afa92a9af0f1a77ef25aab73b11aa855a1823666
Component: engine
2015-03-10 14:43:17 -04:00
Tibor Vass
e719045448 Merge pull request #11287 from rhatdan/homedir
If $HOME is not set, return homedir from /etc/passwd
Upstream-commit: d26e3cfd52d4041f2befbadcdffbfd0a9202a925
Component: engine
2015-03-10 14:38:30 -04:00
Michael Crosby
7342ab6e3e Merge pull request #11267 from thaJeztah/simplify-parser_test
cleanup: simplify parser_test
Upstream-commit: 7dac3f417d958e96c9c8277a74844e12a6c94367
Component: engine
2015-03-10 11:05:39 -07:00
Michael Crosby
07940fe2c8 Merge pull request #11277 from chenhanxiao/RELEASE-CHECKLIST-typo
RELEASE-CHECKLIST: fix a typo
Upstream-commit: ec7621aab566138dbb473c4963568b93f010aaaa
Component: engine
2015-03-10 10:50:34 -07:00
Michael Crosby
1a0535fb75 Merge pull request #11290 from LK4D4/fix_lxc_for_new_api
Use CgroupString instead of missing GetCgroupAllowString in lxc_template
Upstream-commit: 1835665e94d2a40023948ca00abea6fb660c4cf8
Component: engine
2015-03-10 10:39:17 -07:00
Alexander Morozov
393b1a4214 Setup user groups in lxc driver
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: 821ec8334fd4ff3500b4e2d2338f3cc8935e17bd
Component: engine
2015-03-10 09:43:11 -07:00
Phil Estes
36b60a9555 Merge pull request #11282 from duglin/FixAPITestCode
Fixup a test for -f processing
Upstream-commit: 1b1cc100f2859c937ddad9adfe6059bb48e514a1
Component: engine
2015-03-10 12:10:08 -04:00
Tibor Vass
d2615972c0 Merge pull request #11143 from dmcgowan/graph-v2-push-cleanup
Cleanup v2 push logic
Upstream-commit: eb21eb95e592951d0f80ced9273fd025959bb350
Component: engine
2015-03-10 11:56:02 -04:00
Alexander Morozov
f2f7f591d4 Use CgroupString instead of missing GetCgroupAllowString in lxc_template
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
Upstream-commit: c8c11bfc363363fcc26da5868292544cbabea320
Component: engine
2015-03-10 08:50:03 -07:00
Tibor Vass
e0f80352b9 Merge pull request #11218 from tianon/refactor-frozen
Refactor busybox downloading as generic "frozen-images"
Upstream-commit: cda003775f0be8caa6acc4a4921f93a2024e8eda
Component: engine
2015-03-10 11:47:00 -04:00
Jessie Frazelle
02ceac919e Merge pull request #11208 from LK4D4/new_libcontainer_api
New libcontainer api
Upstream-commit: 2fb89b2e2ca1043abf8d4c02532ce42135efe6f6
Component: engine
2015-03-10 07:50:19 -07:00
Dan Walsh
d32c83b25c If $HOME is not set, return homedir from /etc/passwd
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Upstream-commit: 42aec0c771fbc43398d02822383942ddcea49cb9
Component: engine
2015-03-10 10:00:22 -04:00
Doug Davis
4a7bad6471 Fixup a test for -f processing
Thanks to @ahmetalpbalkan for noticing... we had an old check in this
testcase that no longer applied (due to stuff being removing recently).
However, while in there I added a check to make sure that the file referenced
by the query parameter isn't used at all.

Signed-off-by: Doug Davis <dug@us.ibm.com>
Upstream-commit: a853f8e4687adb78c0e63019caae32b216cce925
Component: engine
2015-03-10 05:47:12 -07:00
Chen Hanxiao
01dee63e43 RELEASE-CHECKLIST: fix a typo
s/cabdidate/candidate
s/can get bring/can bring

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Upstream-commit: 8d138eb7fa69ec0ca8d47220d56635d8acea2eba
Component: engine
2015-03-10 05:03:28 -04:00
Lei Jitang
0199092cfa Set default restart policy name to 'no' Closes #10874
Signed-off-by: Lei Jitang <leijitang@huawei.com>
Upstream-commit: 311a600f1912c0d2a30becffdecde6026ada2624
Component: engine
2015-03-10 10:09:12 +08:00
Derek McGowan
91448d8573 Cleanup v2 push logic
Manifest is now generated during a v2 push, not relying on previously generated hashes. When pushing a layer, the hash is directly calculated from the tar contents which will be pushed. Computing the hash on push ensures that the hash contents always match what is seen by the registry. This also mitigates issues with tarsum differences and permits using pure SHA digests.
Additionally the new manifest function is moved to the unit tests since it is no longer called outside the tests.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
Upstream-commit: d172f1253a6a277dce71cd59b0d87119f3ed282e
Component: engine
2015-03-09 18:33:15 -07:00
Tianon Gravi
c071c815d3 Refactor busybox downloading as generic "frozen-images"
This makes it much simpler to add new "frozen" images -- simply add them to the `Dockerfile` and in `hack/make/.ensure-frozen-images` and you're off to the races.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Upstream-commit: 09b4c2585284d1125d4d299a7d58b36c1d0baf17
Component: engine
2015-03-09 19:02:59 -06:00
Michael Crosby
0edc2f2c31 Merge pull request #11268 from duglin/FixServerURLUsage
Use server.URL() instead of server.URL
Upstream-commit: c5af44e6d0a1ae8cdc1a91de28c0b73dd5478fb2
Component: engine
2015-03-09 17:18:32 -07:00
Doug Davis
9863597201 Use server.URL() instead of server.URL
Old way now returns the go type instead of the value

Signed-off-by: Doug Davis <dug@us.ibm.com>
Upstream-commit: 40c8e78757a75a9e251223f563fc5adb2bc9bf99
Component: engine
2015-03-09 17:00:45 -07:00
Sebastiaan van Stijn
8e64a493c0 cleanup: simplify parser_test
parser_test only needed the directory-names for
the tests to run. This replaces f.Readdir() with
f.Readdirnames() to only return the names.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 9e63b0d0f9530a0a7d6445606062b8ca99793792
Component: engine
2015-03-10 00:55:00 +01:00
Tibor Vass
c53e223228 Merge pull request #11159 from duglin/LastModifiedTest
Add an HTTP Last-Modified header testcase
Upstream-commit: feb02a2bbf9b4b4eb8f68bcec652ac687195f462
Component: engine
2015-03-09 19:22:27 -04:00
Tibor Vass
31e0dffb09 Merge pull request #11258 from HuKeping/cmdlogin
Remove leading spaces of username when login
Upstream-commit: aa19a78d3dacc5e774085933b897a01dd78e71d0
Component: engine
2015-03-09 19:02:24 -04:00
Hu Keping
edb661c0bf Remove leading spaces of username when login
When we run `docker login` we will be asked to input our username.

Prior to this PR, "userA" and " userA" will be considered as two
diferrent user, which is not right.

Signed-off-by: Hu Keping <hukeping@huawei.com>
Upstream-commit: 2687502ba4e3d3eb41b6da6b52de151ef5dca9a2
Component: engine
2015-03-10 07:54:08 +08:00
Alexander Morozov
a630d7f64a Merge pull request #10893 from ahmetalpbalkan/win-cli/BuildViaDockerfileURL-same-host-fix
integ-cli: Implement remote FakeStorage server for build via URL tests
Upstream-commit: 7c4951d552d25c0608c44d03529c6b8cbe5d1e06
Component: engine
2015-03-09 13:33:40 -07:00
Tibor Vass
7a9b88348f Merge pull request #10423 from dmcgowan/v2-registry-fix-single-names
Allow single name component repository names
Upstream-commit: 02e0a23d80a4c19c2d475c3f205eba79a45f8a59
Component: engine
2015-03-09 15:40:22 -04:00
Ahmet Alp Balkan
60d13dc8cb integ-cli: Implement remote FakeStorage server for build via URL tests
Implemented a FakeStorage alternative that supports spinning
up a remote container on DOCKER_TEST_HOST to serve files over
an offline-compiled Go static web server image so that tests which
use URLs in Dockerfile can build them over at the daemon side.

`fakeStorage` function now automatically chooses if it should
use a local httptest.Server or a remote container.

This fixes the following tests when running against a remote
daemon:

- `TestBuildCacheADD`
- `TestBuildCopyWildcardNoFind`
- `TestBuildCopyWildcardCache`
- `TestBuildADDRemoteFileWithCache`
- `TestBuildADDRemoteFileWithoutCache`
- `TestBuildADDRemoteFileMTime`
- `TestBuildADDLocalAndRemoteFilesWithCache`
- `TestBuildADDLocalAndRemoteFilesWithoutCache`
- `TestBuildFromURLWithF`
- `TestBuildApiDockerFileRemote`

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
Upstream-commit: 2e95bb5f1a65d90f412568d6df82a9e2cdd3e790
Component: engine
2015-03-09 12:03:55 -07:00
moxiegirl
5a21254417 Merge pull request #11232 from estesp/localhost-resolv-docs
Add information on resolv.conf localhost filtering to networking.md
Upstream-commit: 5cbe6820e2a837e2442c0d70d13efcb2a4f81803
Component: engine
2015-03-09 11:32:38 -07:00
Tianon Gravi
3a84d64ca0 Merge pull request #11251 from coolljt0725/add_ulimit_to_bash_completion
Add --ulimit and --default-ulimit to bash completion
Upstream-commit: 228449b631f3dae41f5cb1e333aa226842f0ea49
Component: engine
2015-03-09 11:30:42 -07:00