A CLI with autocompletion and syntax highlighting for Docker commands.
Docker commands have tons of options. They are hard to remember.
Container names are hard to remember and type.
Same goes for image names.
There are some handy shortcuts too. What was that command ro remove all dangling images? OMG, what was it? docker rmi $(docker ps --all --quiet)? Oh, there you go:
Boom! How about removing all stopped containers?
Dockercli is a Python package hosted on pypi and installed with:
$ pip install dockercli
- To talk to Docker: docker-py.
- To power the CLI: Python Prompt Toolkit.
- To format the output: tabulate.
- To print out the output: Click.
Yes! Pull request or issues are welcome.
First, install the requirements for testing:
$ pip install -r requirements-dev.txt
There are unit tests under tests. The command to run them is:
$ py.test
Additionally, there are integration tests, that can be run with:
$ behave
To see stdout/stderr, use the following command:
$ behave --no-capture