jdkelley/bash
Bash in a container. This is useful if the system you are on does not have an up to date version of bash and you are unable to upgrade. Examples of this might be a shared CI node, a build server that must provide multiple versions of bash, or a Mac.
docker run --rm \
-it \
jdkelley/bash
To use this instead of the local version of bash, create an alias:
alias bash="docker run --rm -it jdkelley/bash"
There may be times when you want to use a directory of files inside your bash container. Map in the directory as a volume:
docker run --rm \
-v <scripts-directory>:/scripts \
-it \
jdkelley/bash
To map your current directory, use:
docker run --rm \
-v ${PWD}:/scripts \
-it \
jdkelley/bash
This is deployed on Docker Hub and GitHub Package Registry.
docker pull jdkelley/bash