Commit Graph
5652 Commits
Author SHA1 Message Date
Daniel Nephin bea6567477 Move image trust related cli methods into the image package.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 0cf85349f3
Component: cli
2016-09-09 10:50:16 -04:00
boucher 46699a2a41 Fix typo
Signed-off-by: boucher <rboucher@gmail.com>
Upstream-commit: 9524caa317
Component: cli
2016-09-08 21:31:56 -04:00
boucher cef9a66721 Initial implementation of containerd Checkpoint API.
Signed-off-by: boucher <rboucher@gmail.com>
Upstream-commit: f0647193dc
Component: cli
2016-09-08 21:31:52 -04:00
Yong Tang 9c57f9b583 Restrict size to 2 fractional digits for docker images
This fix tries to address the issue raised in 26300. Previously
`docker images` will use `HumanSize()` to display the size which
has a fixed precision of 4 (thus 3 fractional digits). This
could be problematic in certain languages (e.g. , German, see
26300) as `.` may be interpreted as thousands-separator in number.

This fix use `CustomSize()` instead and limit the precision to 3
(thus 2 fractional digits).

This fix has been tested manually.

This fix fixes 26300.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: c68bb57959
Component: cli
2016-09-08 18:26:50 -07:00
Stephen J Day 92630b8067 client: don't hide context errors
Instead of reformatting error from the request action, we wrap it,
allowing the cause to be recovered. This is important for consumers that
need to be able to detect context errors, such as `Cancelled` and
`DeadlineExceeded`.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: 450b3123e3
Component: cli
2016-09-08 17:47:43 -07:00
Daniel Nephin b924adb986 Fix a test that expects whitespace at the end of the line.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: e2f7387906
Component: cli
2016-09-08 15:50:14 -04:00
Daniel Nephin bc178aeaa8 Replace api/client imports with cli/command in experimental files.
Using

git grep -l 'client\.DockerCli' cli/command/stack/ | xargs sed -i -e 's/client\.DockerCli/command\.Dockercli/g'

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 8f3e3fb6e5
Component: cli
2016-09-08 15:46:48 -04:00
Daniel Nephin a5bf28b72a Move api/client -> cli/command
Using
  gomvpkg
     -from github.com/docker/docker/api/client
     -to github.com/docker/docker/cli/command
     -vcs_mv_cmd 'git mv {{.Src}} {{.Dst}}'

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: b2c77abc35
Component: cli
2016-09-08 15:46:29 -04:00
Daniel Nephin 964a552e76 Move api/client -> cli/command
Using
  gomvpkg
     -from github.com/docker/docker/api/client
     -to github.com/docker/docker/cli/command
     -vcs_mv_cmd 'git mv {{.Src}} {{.Dst}}'

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 3bd1eb4b76
Component: cli
2016-09-08 15:46:29 -04:00
Akihiro Suda eb96b2810d client: transport: fix tlsconfig Clone() on different Golang versions
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: d675c81577
Component: cli
2016-09-08 17:55:54 +00:00
Michael Crosby f7bdcb1297 Move engine-api client package
This moves the engine-api client package to `/docker/docker/client`.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Upstream-commit: 3fff6acaa1
Component: cli
2016-09-07 11:05:58 -07:00
Cao Weiwei f7f411a109 Fix typo
Signed-off-by: Cao Weiwei <cao.weiwei30@zte.com.cn>
Upstream-commit: efdd29abcf
Component: cli
2016-08-28 21:30:14 +08:00
Daniel Nephin c3ab654101 Fix daemon command proxy.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: ad96b991e9
Component: cli
2016-08-26 12:19:02 -04:00
Daniel Nephin 29b743a981 Fix tests and windows service.
Support args to RunCommand
Fix docker help text test.
Fix for ipv6 tests.
Fix TLSverify option.
Fix TestDaemonDiscoveryBackendConfigReload
Use tempfile for another test.
Restore missing flag.
Fix tests for removal of shlex.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 2791c2ec28
Component: cli
2016-08-25 13:09:36 -04:00
Daniel Nephin e110c778f4 Fix tests and windows service.
Support args to RunCommand
Fix docker help text test.
Fix for ipv6 tests.
Fix TLSverify option.
Fix TestDaemonDiscoveryBackendConfigReload
Use tempfile for another test.
Restore missing flag.
Fix tests for removal of shlex.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 9af25060cd
Component: cli
2016-08-25 13:09:36 -04:00
Daniel Nephin 594214abab Remove old cli framework.
Also consolidate the leftover packages under cli.
Remove pkg/mflag.
Make manpage generation work with new cobra layout.
Remove remaining mflag and fix tests after rebase with master.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 38aca22dcd
Component: cli
2016-08-25 13:09:04 -04:00
Daniel Nephin e062c54a99 Remove old cli framework.
Also consolidate the leftover packages under cli.
Remove pkg/mflag.
Make manpage generation work with new cobra layout.
Remove remaining mflag and fix tests after rebase with master.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 3b178887a7
Component: cli
2016-08-25 13:09:04 -04:00
Daniel Nephin fbca637dc3 Update unit tests for new cobra root command.
Cleanup cobra integration
Update windows files for cobra and pflags
Cleanup SetupRootcmd, and remove unnecessary SetFlagErrorFunc.
Use cobra command traversal

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: fc1a3d79f8
Component: cli
2016-08-25 13:09:04 -04:00
Daniel Nephin 7e9f26ef70 Update unit tests for new cobra root command.
Cleanup cobra integration
Update windows files for cobra and pflags
Cleanup SetupRootcmd, and remove unnecessary SetFlagErrorFunc.
Use cobra command traversal

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 58a14cd18c
Component: cli
2016-08-25 13:09:04 -04:00
Daniel Nephin 93466186ca Convert docker root command to use pflag and cobra
Fix the daemon proxy for cobra commands.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 82a8cc1556
Component: cli
2016-08-25 13:09:03 -04:00
Daniel Nephin c526dbb69a Convert docker root command to use pflag and cobra
Fix the daemon proxy for cobra commands.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 08784d7e0e
Component: cli
2016-08-25 13:09:03 -04:00
Daniel Nephin 8d4a32d8bc Convert dockerd to use cobra and pflag
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: d08dd40a88
Component: cli
2016-08-25 13:09:03 -04:00
Daniel Nephin 88b6751cda Convert dockerd to use cobra and pflag
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 23dd85befd
Component: cli
2016-08-25 13:09:03 -04:00
Daniel Nephin 91dde0851f Convert inspect to cobra.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 39c47a0e24
Component: cli
2016-08-03 10:36:47 -04:00
Akihiro Suda b878e00458 Migrate exec command to cobra
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: b32ff5a1cd
Component: cli
2016-07-29 02:10:36 +00:00
Daniel Nephin a303f0b676 Add a script to generate man pages from cobra commands.
Use the generate.sh script instead of md2man directly.
Update Dockerfile for generating man pages.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 6f66e15f99
Component: cli
2016-07-19 12:00:21 -04:00
Sebastiaan van Stijn 80a0e584b9 Don't automagically add "[OPTIONS]" to usage
This removes the logic to automatically
add [OPTIONS] to the usage output.

The current logic was broken if a command
only has deprecated or hidden flags, and
in many cases put the [OPTIONS] in the
wrong location.

Requiring the usage string to be set
manually gives more predictable results,
and shouldn't require much to maintain.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 6393b5fcc7
Component: cli
2016-07-19 00:07:19 +02:00
allencloud 3caf06c122 fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 5545165e02
Component: cli
2016-07-05 20:42:17 +08:00
Yong Tang 501e0f5cc5 Use spf13/cobra for docker update
This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command `docker update` to use spf13/cobra

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 396d11999f
Component: cli
2016-06-22 11:06:44 -07:00
Tomasz Kopczynski 3c8b37971d Migrate info command to cobra
Signed-off-by: Tomasz Kopczynski <tomek@kopczynski.net.pl>
Upstream-commit: 91b49f8538
Component: cli
2016-06-17 22:11:33 +02:00
Anusha Ragunathan b25f2d76d2 Avoid back and forth conversion between strings and bytes.
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
Upstream-commit: 63bccf7f31
Component: cli
2016-06-15 09:55:40 -07:00
Arnaud Porterie ebfb6665f7 Merge pull request #23522 from docker/swarm-stack
Add experimental Docker Stack CLI commands
Upstream-commit: 8e224f9ef7
Component: cli
2016-06-15 02:22:01 +00:00
Tibor Vass 9dfb734479 plugins: experimental support for new plugin management
This patch introduces a new experimental engine-level plugin management
with a new API and command line. Plugins can be distributed via a Docker
registry, and their lifecycle is managed by the engine.
This makes plugins a first-class construct.

For more background, have a look at issue #20363.

Documentation is in a separate commit. If you want to understand how the
new plugin system works, you can start by reading the documentation.

Note: backwards compatibility with existing plugins is maintained,
albeit they won't benefit from the advantages of the new system.

Signed-off-by: Tibor Vass <tibor@docker.com>
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
Upstream-commit: 11c8c6c8fc
Component: cli
2016-06-14 14:20:27 -07:00
Daniel Nephin d3a41b659b Add experimental docker stack commands
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 3fe470656a
Component: cli
2016-06-14 14:56:35 -04:00
Vincent Demeester a9bb747fe8 Migrate cp command to cobra
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 50626d2b2b
Component: cli
2016-06-14 17:16:59 +02:00
Daniel Nephin dab4dc32bc Add Swarm management CLI commands
As described in our ROADMAP.md, introduce new Swarm management commands
to call to the corresponding API endpoints.

This PR is fully backward compatible (joining a Swarm is an optional
feature of the Engine, and existing commands are not impacted).

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 408531dafa
Component: cli
2016-06-13 22:17:15 -07:00
Tianyi Wang 331a2b56c2 Migrate ps command to cobra
Signed-off-by: Tianyi Wang <capkurmagati@gmail.com>
Upstream-commit: 92e6b85fa0
Component: cli
2016-06-14 11:59:37 +09:00
Alexander Morozov 6a06670ae1 Merge pull request #23256 from vdemeester/migrate-pull-push-to-cobra
Use spf13/cobra for docker push and docker pull
Upstream-commit: f09c355dc2
Component: cli
2016-06-13 14:16:42 -07:00
Alexander Morozov c3d680f66e Merge pull request #23265 from vdemeester/migrate-login-logout-to-cobra
Use spf13/cobra for docker login and docker logout
Upstream-commit: 6ee236be1d
Component: cli
2016-06-13 14:15:46 -07:00
Alexander Morozov 7ec9fe27ce Merge pull request #23309 from yongtang/23211-spf13-cobra-commit
Use spf13/cobra for docker commit
Upstream-commit: fdc52d0f51
Component: cli
2016-06-13 14:13:37 -07:00
Vincent Demeester c516b89c83 Moving Image{Push,Pull}Privileged to trust.go
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 0679ae5bf4
Component: cli
2016-06-10 12:07:32 +02:00
Vincent Demeester 08cd8b5ab5 Migrate push command to cobra
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 16dbf630a2
Component: cli
2016-06-10 12:07:28 +02:00
Vincent Demeester 7f453bbb70 Migrate pull command to cobra
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 27fd1bffb0
Component: cli
2016-06-10 12:07:23 +02:00
Vincent Demeester 102ec2c2f8 Migrate login & logout command to cobra
Also moves some common stuff around :
- `api/client/registry.go` for registry related
method (`ElectAuthServer`, …)
- `api/client/credentials.go` to interact with credentials

Migrate logout command to cobra

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: d4fef62ce0
Component: cli
2016-06-10 12:04:29 +02:00
Daniel Nephin ab55be6e38 Support running 'docker help daemon'
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 90e5326097
Component: cli
2016-06-09 13:22:03 -04:00
Vincent Demeester 2c2e707ce1 Migrate save command to cobra
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 171adb0b0f
Component: cli
2016-06-09 17:38:20 +02:00
Vincent Demeester 2710da2962 Migrate load command to cobra
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: ca96b906bc
Component: cli
2016-06-09 17:28:33 +02:00
Yong Tang 65ee11dbcd Use spf13/cobra for docker commit
This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command `docker commit` to use spf13/cobra

NOTE: `RequiresMinMaxArgs()` has been renamed to `RequiresRangeArgs()`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 43fdd6f2fa
Component: cli
2016-06-08 19:00:58 -07:00
Vincent Demeester e21f9a847f Merge pull request #23334 from WeiZhang555/cobra-stats
Migrate stats and events command to cobra
Upstream-commit: 58a97cc11e
Component: cli
2016-06-08 23:50:46 +02:00
Alexander Morozov e684c3f13e Merge pull request #23343 from vdemeester/migrate-build-to-cobra
Use spf13/cobra for docker build
Upstream-commit: b2acf69e03
Component: cli
2016-06-08 11:59:48 -07:00