Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockercon

dockercon is a tool to switch between docker contexts faster.

How to install

Copy dockercon.py somewhere into your path

cp ./dockercon.py /usr/local/bin/dockercon

How to use

To add a context:

dockercon -a mydockerhst-local --host ssh://user@192.168.1.1 --stack swarm

To switch to a context:

dockercon mydockerhst-local

To see the saved context:

$ dockercon

To get help:

$ dockercon -h

usage: dockercon [-h] [-d <NAME>] [-a <NAME>] [--host <HOST>] [--stack <STACK>] [<NAME>]

dockercon is a tool to switch between docker contexts faster.

positional arguments:
  <NAME>           Switch to context '<NAME>'

optional arguments:
  -h, --help       show this help message and exit
  -d <NAME>        delete context <NAME>
  -a <NAME>        add context <NAME>
  --host <HOST>    <HOST> to use with a new context
  --stack <STACK>  orchestrator <STACK> to use with a new context

Author

About

dockercon is a tool to switch between docker contexts faster.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages