Docker-utils a package of tools for Docker
To use the scripts, you have to add execution right to them :
chmod u+x scripts/*
If you want these scripts always available, you can :
- create symbolic links in your
~/bin
directory - or add the scripts directory to the
PATH
environnement variable
There are bash completion files in etc/bash_completion.d
folder.
To enable these completions either :
-
copy or link the completion files in
/etc/bash_completion.d
directory -
or source them in your
~/.bashrc
file after bash completion features are loaded :source <completionFilesDir>/*-completion
Script that help user in the build/tag docker image process.
It extracts image name/version from special labels in the Dockerfile
:
LABEL \
image_name="myRepo/myUser/myImage" \
version="1.0"
For more information, use the --help
option :
docker-build-image --help
See examples
folder, it contains a sample image Dockerfile
.
You can use it to test this script and its options.
For example, to build the sample image :
docker-build-image examples/docker-build-image
- Fork it !
- Clone your fork :
git clone <url>
- Create your feature branch :
git checkout -b my-new-feature
- No tabs please !
- Modify files and add them to the staging area :
git add <FILES>
- Commit your changes :
git commit -am 'Add some feature'
- Push to the branch :
git push origin my-new-feature
- Submit a pull request
This script is under the GNU General Public License version 3.
See this file : ./COPYING