Multiple versions of multiple shells
50K+
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:f2d82a2c6…
Size
21.1 MB
Last updated
about 22 hours ago
docker pull alganet/shell-versions