Container image for development environments with Nix and Docker CLI.
- Image:
ghcr.io/agynio/devcontainer - Architectures:
linux/amd64,linux/arm64
Included:
- Ubuntu 24.04 base (pinned)
- Nix via Determinate Systems installer (no init/systemd; sandbox disabled)
- Docker CLI from Docker’s apt repository
- zsh as the default shell
Usage:
- Pull:
docker pull ghcr.io/agynio/devcontainer:latest - Run:
docker run --rm -it ghcr.io/agynio/devcontainer:latest zsh
Notes:
- zsh is root's login shell and is published as
SHELL=/usr/bin/zsh, which is what a terminal session execs./root/.zshrccarries history and prompt defaults. - Nix is initialized via
/etc/profile.d/nix.shwhich sources the Nix environment; PATH includes Nix bins. zsh reaches it through/etc/zsh/zprofile, which does not source/etc/profileon Ubuntu by default. - Docker CLI requires access to a running Docker daemon. For local usage, you may mount the host socket:
-v /var/run/docker.sock:/var/run/docker.sock. - Verify tools:
nix --versionanddocker --version.