Docker tools
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.env
.gitignore
README.md
hostnames

README.md

Docker tools

Description

A collection of POSIX compatible shell scripts as additions to a Docker based development environment.

Tools

docker-build-images.sh

Builds images for each Dockerfile found recursively in the current directory.
Also accepts Dockerfiles and directories to search for as arguments.

./docker-build-images.sh [Dockerfile|directory] [...]

Tags images based on git branch names, with master being tagged as latest.
Resolves image dependencies for images in the same project.

docker-hostnames.sh

Updates hostnames for the docker host IP or 127.0.0.1 in /etc/hosts.

./docker-hostnames.sh [-d] [config_file_1] [config_file_2] [...]

docker-cleanup-images.sh

Removes dangling docker images.

./docker-cleanup-images.sh

docker-image-exists.sh

Checks if a given docker image exists.

./docker-image-exists.sh image[:tag]

docker-machine-bridge.sh

Adds a bridged network adapter to a VirtualBox docker machine.

./docker-machine-bridge.sh [-i network_adapter] [-d] [machine]

License

Released under the MIT license.

Author

Sebastian Tschan