Tool for docker container management
Project description
Description
docker-manager is a tool similar to docker-compose but it handles a few additional things like nginx config for proxying/clustering webservices and handling basic auth. And it’s also adding hosts entries for each container.
Installation
Since docker-manager is using python3 by default, you better upgrade.
After successful installation of python3 and pip for pyhton3, run the following command to install or upgrade docker-manager:
pip3 install --user --upgrade docker-manager
If you are on mac osx and your local python folder isn’t in your PATH variable you might add it to $PATH or symlink it in /usr/local/bin with sudo.
Max OSX
sudo ln -s /home/<username>/.local/bin/docker-container /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-image /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-watcher /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-bridge /usr/local/bin/
The same applies to linux, however, the path is different. (On usual Distributions this is in $PATH already)
sudo ln -s /home/<username>/.local/bin/docker-container /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-image /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-watcher /usr/local/bin/
sudo ln -s /home/<username>/.local/bin/docker-bridge /usr/local/bin/
Argument Completion
docker-manager supports argument completion, to activate this feature in linux run:
sudo activate-global-python-argcomplete3
Under OSX it isn’t that simple unfortunately. Global completion requires bash support for complete -D, which was introduced in bash 4.2. On OS X or older Linux systems, you will need to update bash to use this feature. Check the version of the running copy of bash with echo $BASH_VERSION. On OS X, install bash via Homebrew (brew install bash), add /usr/local/bin/bash to /etc/shells, and run chsh to change your shell. Afterwards you might be able to also just run:
sudo activate-global-python-argcomplete3
Usage
tbd
Known Issues
If you discover any bugs, feel free to create an issue on GitHub fork and send us a pull request.
Contributing
Please use git-cd for contributing, it matches my workflow best.
Fork it
Create your feature branch (git cd start my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin feature/my-new-feature)
Create new Pull Request (git cd review my-new-feature)
License
Apache License 2.0 see https://github.com/claudio-walser/python-docker-manager/blob/master/LICENSE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for docker_manager-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73fbf34e3c169941166f8483cde8efd5ac06f8fcfe43ca826b3d8d14a2069a37 |
|
MD5 | 03df91083e966afae4c58cb3e0e4b786 |
|
BLAKE2b-256 | 7eb355b7cd33276e3e9628a66b53357a99c3ba08ec9eed98ed5eb3e2d41f27a7 |