Multiple versions of multiple shells
10K+
Multiple versions of multiple shells. Ideal for testing portable shell scripts.
You can list the shells in your image:
$ docker run -it --rm alganet/shell-versions find /opt -type f
/opt/bash_5.2.15/bin/bash
/opt/dash_0.5.11/bin/dash
...
And run them by choosing a version:
$ docker run -it --rm alganet/shell-versions /opt/bash_5.2.15/bin/bash -c "echo hello there"
hello there
You can pass a list of versions to TARGETS= or use sh shvr.sh [current|targets] to let the script generate a list for you:
$ docker build -t "mymultishell" --build-arg TARGETS="$(sh shvr.sh targets)" .
$ docker run -it --rm "mymultishell" ls /opt
Content type
Image
Digest
sha256:c2d77ae70…
Size
139.7 MB
Last updated
about 19 hours ago
docker pull alganet/shell-versions:all