-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
This issue is to track a new feature to store credentials to connect to different clusters and quickly switch from one to the other. Inspired by kubectl context. This will allow a user to quickly switch between different DOCKER_HOST
and kubernetes endpoints as well as other endpoints in the future.
Will bring a new subcommand that will look like:
$ docker context --help
Usage: docker context COMMAND
Manage contexts
Management Commands:
set Modify an existing context
Commands:
create Create a context
export Export a context
import Import a context
ls List contexts
rm Remove one or more contexts
use Set the current docker context
Run 'docker context COMMAND --help' for more information on a command.
Older PR to moby for reference: moby/moby#38148
- foundation changes to docker/cli [do not merge] Fast context switch: foundation #1500
- docker cli ui changes Fast context switch: commands #1501
- tests TBD
- documentation TBD
- completion Bash completion for
docker context
command family #1619