Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

I personally devoted effort on Docker Images which makes it easy to develop in Docker containers.

Toolbx / DistroBox share similarities with my effort on Docker images. Of course, Toolbx / DistroBox are superior in many ways.

I’ve migrated those Docker images to leverage Podman + Toolbx. See more discussions in My Podman Container Images .

General Tips

  1. Since the home directory is shared between the host and the container, binaries under the home directory (e.g., ~/.local/bin/) will be available in the container as well. They might just work inside the container. For example, if you have Claude CLI installed on the host machine (under ~/.local/bin), you will be able to use it inside the container as well without installing it again inside the container.

  2. Information of the running container is stored in /run/.containerenv inside the container.

Different Ways of Running Commands Insdie the Container

Table 1:Toolbox Command Comparison

Command

What it does

Best Used For

toolbox enter

Drops you into an interactive shell inside the container.

Active development, installing packages, or exploring the environment.

toolbox run

Runs a single command inside a container, creating/starting it automatically if needed.

One-off scripts, CI/CD automation, or running an app without “entering”.

toolbox exec

Runs a single command inside an already running container (lower-level native podman wrapper).

Background automation or scripts where you know the container is already active.

Toolbox

https://github.com/containers/toolbox

toolbox create --distro ubuntu --release 24.04

toolbox create --image <registry/image:tag> <container_name>

Images

  1. toolbox @ GitHub contains a images directory which was the source code of podman/toolbx images quay.io/fedora/*-toolbox. However, it is deprecated and I’m not sure where the latest source code is for images quay.io/fedora/*-toolbox.

  2. Universal Blue Atomic Linux Distributions has its own customized podman/toolbx images ghcr.io/ublue-os/*-toolbox which are based on quay.io/fedora/*-toolbox. The source code is at ublue-os/toolboxes @ GitHub .

DistroBox

https://github.com/ranfdev/DistroShelf

https://distrobox.it/#quick-start

References