Multi-Arch Nim Docker Image for linux/ppc64le, linux/arm/v7, linux/arm64/v8 & linux/amd64.
10K+
Semver tags are referring to the Nim version contained in that particular image.
docker pull akito13/nim
docker pull akito13/nim:2.0.0
Tags follow semver, without the v.
Git tags equal Docker tags, so no need to check tags explicitly on Docker Hub.
bash docker-build.sh
echo 'import std/json; echo """{"hello":"test"}""".parseJson.pretty' > t.nim
If you simply need to compile something, always use the rootless image.
docker run -itv "$PWD:/cwd" --rm akito13/nim:2.0.0-rootless bash -c "nim c -r /cwd/t.nim && rm /cwd/t"
If you compile or install something, which depends on libraries installed through apt or otherwise need root access, you can use the root based image.
docker run -it --rm akito13/nim:2.0.0 bash -c "apt update && apt install -y libncurses-dev && nimble install -y moe"
You may also run the rootless image as root, if you don't want to download an additional image & instead re-use the already existing rootless one.
docker run -it --rm --user root akito13/nim:2.0.0-rootless bash -c "apt update && apt install -y libncurses-dev && nimble install -y moe"
You may also use the Alpine based images.
docker run -it --rm akito13/nim:2.0.0-alpine sh -c "apk --no-cache add ncurses-dev pcre && nimble install -y moe"
Content type
Image
Digest
sha256:dd834a8a2…
Size
80.8 MB
Last updated
about 2 years ago
docker pull akito13/nim