Guillaume Tardif
fe57e4c159
Fix a bug where calling login, context inspect did not do anything if not on default context. These command will shell out to Moby cli regardless of current context
2020-06-18 09:25:28 +02:00
Guillaume Tardif
1bb2909d1a
Do not restrict `docker inspect` to 1 arg, can be zero (inspect current context), one or several.
...
Especially, inspect with zero param is already used by VSCode. Cf https://github.com/docker/desktop-microsoft/issues/19
2020-06-18 09:21:48 +02:00
Guillaume Tardif
bbcdad39d5
Renamed docker-classic to “com.docker.com”.
2020-06-17 17:57:53 +02:00
Djordje Lukic
4232b66a6b
Merge pull request #228 from docker/compose_project_name
...
Changed compose flag —name to —project-name, -p, aligned with docker-compose flag.
2020-06-17 05:52:55 -07:00
Ulysses Souza
f6aad0d7b4
Add --json option to commands
...
- docker ps
- docker context ls
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-06-17 10:00:42 +02:00
Guillaume Tardif
830914cb15
Prepare for release 0.1.0
2020-06-17 08:41:54 +02:00
Guillaume Tardif
2a49c3b32f
added -q flag to `docker context ls`. (This is now used in desktop e2e wsl2 tests)
...
See https://ci-next.docker.com/teams-desktop/blue/organizations/jenkins/desktop%2Fdesktop-test-single-branch-win/detail/desktop-test-single-branch-win/274982/pipeline/
2020-06-17 07:40:27 +02:00
Guillaume Tardif
404f2629a3
Changed compose flag —name to —project-name, -p, aligned with docker-compose flag.
2020-06-17 07:17:58 +02:00
Ulysses Souza
5b1522095b
Fix linter
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-06-16 10:59:40 +02:00
Guillaume Tardif
9257d0ff49
Merge pull request #205 from ulyssessouza/inspect
...
Add inspect command
2020-06-16 09:33:33 +02:00
Ulysses Souza
1039c5ed94
Add tests on inspect
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-06-15 17:20:37 +02:00
Guillaume Tardif
eb505ecd75
Add -f option to force remove current context and switch to default if required
2020-06-15 16:28:43 +02:00
Guillaume Tardif
ddc44d7abe
Do not allow deleting curent context without -f flag
2020-06-15 15:52:44 +02:00
Ulysses Souza
96bc1ca6f1
Add inspect command
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2020-06-15 15:08:04 +02:00
Guillaume Tardif
0de2522079
Renamed Moby backend to “local” backend. This will leave “moby” available for default type contexts
2020-06-15 12:20:03 +02:00
Guillaume Tardif
113350a09d
Context create aci is now a subcommand, as Moby and example. Root `docker context create` also allows backward compatibility to create docker contexts as before
2020-06-15 12:19:06 +02:00
Guillaume Tardif
d0b2bfbf52
Fix `docker context ls` that was not displaying legacy context endpoints
2020-06-15 12:10:54 +02:00
Guillaume Tardif
336df897c1
Merge pull request #207 from docker/version_cli
...
version command adding azure integration beta version in textual output
2020-06-15 12:02:33 +02:00
Guillaume Tardif
afa205be95
Server version : will be 1.0.0-beta1, -beta2, …
2020-06-15 11:51:03 +02:00
Guillaume Tardif
98f7a8e1aa
When can not load config file, the previous cli is displaying a WARNING message, but continues with default context, we should do the same.
...
This happened in some desktop e2e tests where the config file is not set properly in WSL2 environment, see
https://github.com/docker/pinata/pull/14062
2020-06-15 11:41:26 +02:00
Guillaume Tardif
dda4b0f3bf
Wrap error cause so that we can understand why the cli cannot determine current context.
...
This happened in Desktop WSL2 tests, we’re blind here : https://ci-next.docker.com/teams-desktop/blue/organizations/jenkins/desktop%2Fdesktop-test-single-pr-win/detail/desktop-test-single-pr-win/120692/pipeline
2020-06-14 19:38:29 +02:00
Guillaume Tardif
376a4b671c
version command adding azure integration beta version in textual output
2020-06-13 10:47:05 +02:00
Guillaume Tardif
f8ea0934f0
Align login success message with old cli (& with “canceled” message)
2020-06-12 14:50:35 +02:00
Guillaume Tardif
3c2eb067bc
Fix typo in DOCKER ENPOINT
2020-06-12 14:50:35 +02:00
Guillaume Tardif
93623dc5aa
Merge pull request #200 from docker/context_store_type
...
Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)
2020-06-11 13:34:05 +02:00
Guillaume Tardif
e7682682fb
Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)
2020-06-10 18:17:48 +02:00
Guillaume Tardif
72bae873c5
Do not delegate to old cli if cobra fails before invoking the PreRun or SetHelp hook that call isOwnCommand(). Find the command from root.Find(args).
...
Tried to use `cmd, err := root.ExecuteC()` but I can’t pass the context like with `root.ExecuteContext(ctx)`, could not find a way without and explicit call to root.Find(args)
2020-06-10 17:25:52 +02:00
Djordje Lukic
8400795caf
Add the store to the gRPC context
...
The contexts service needs it
2020-06-09 12:11:59 +02:00
Djordje Lukic
bb69de1db3
Add context endpoint to set the current context
2020-06-08 16:01:43 +02:00
Djordje Lukic
22d4d250a9
Move the config into own package and outside of cli
2020-06-08 16:01:36 +02:00
Djordje Lukic
67fb49c98c
Merge pull request #179 from rumpl/feat-stream
...
Feat stream
2020-06-08 06:52:56 -07:00
Guillaume Tardif
f1a5f2d6cf
Backend is responsible for generating containers IDs and truncate them if wanted/supported for docker ps
2020-06-08 12:37:33 +02:00
Djordje Lukic
c34d016fdb
Unify protos with client interfaces
...
* change function names in containers.proto
* add streams proto
2020-06-08 09:43:19 +02:00
Guillaume Tardif
f939dd4d47
Display friendly message if unknown command is available in default context
2020-06-05 18:24:08 +02:00
Guillaume Tardif
54141a9bdd
Do not display exit status when classic cli exit in error
2020-06-05 18:17:18 +02:00
Djordje Lukic
e84b508e80
Merge pull request #171 from docker/windows_kill_child_processes
...
Windows : kill child processes
2020-06-05 00:42:21 -07:00
guillaume.tardif
995d047608
Windows specific : ensure all child processes are killed when parent exits (also works when killing parent). From Desktop code
2020-06-04 17:58:24 +02:00
Guillaume Tardif
b91eab0544
Merge pull request #170 from docker/context_create_check
...
Do not allow context creation for unknown types
2020-06-04 16:51:11 +02:00
Guillaume Tardif
4a4b62ded2
Do not allow context creation for unknown types
2020-06-04 16:44:08 +02:00
Guillaume Tardif
427527d197
Merge pull request #146 from docker/chore-refactor-azure-login
...
Refactor Azure login local server
2020-06-04 10:39:30 +02:00
Christopher Crone
e5335adedd
Azure: Refactor login errors
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-06-04 10:20:39 +02:00
Christopher Crone
35789ace12
Azure: Refactor creation of login server
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-06-03 17:10:54 +02:00
Guillaume Tardif
5675763856
Interactive context create, adding method CreateContextData to CloudService interface, so Cloud Backends can provide a custom context creation method.
2020-06-02 16:04:08 +02:00
Guillaume Tardif
e2b9f5bc57
Move login to root command, delegate to classic login when only one arg and not dot in it
2020-06-01 22:55:46 +02:00
Guillaume Tardif
f1fb80ecc5
Merge pull request #161 from docker/context_inspect
...
Add docker context inspect command relying on classic docker
2020-05-29 15:51:10 +02:00
Guillaume Tardif
528d47ce08
Add docker context inspect command relying on classic docker
2020-05-29 12:02:14 +02:00
Guillaume Tardif
01aaec2dbe
Fix Azure login : allow getting a backend when no corresponding context already exists with an explicit call from the login command. Will be usefull next for context creation with azure interactive things
2020-05-29 11:35:35 +02:00
Guillaume Tardif
ea98a2dd78
Fix docker-classic creation makefile target
2020-05-27 21:14:07 +02:00
Guillaume Tardif
cc46f84043
Forward closing signal to docker-classic when closing docker. Note this will not forward Kill signal, impossible to intercept / process this one.
2020-05-27 18:38:51 +02:00
Guillaume Tardif
e630ace677
Merge pull request #154 from docker/fix_context_inspect_shellout
...
Fix shell out to docker-classic when invoking
2020-05-27 17:02:01 +02:00