The Ur Project

Documenting the craft of stacking things so they remain stacked. For a very long time.

Container

A minimal OCI base image: bash, CA certificates and pkg, with the Sandcastle repositories already configured, and no init.

It's glibc and bash rather than musl and busybox, so it's a small container without the musl and busybox problems that usually come with one. pkg install grows it into whatever you need, even inside a running container.

The current version and its manifest digest are on the Download page.

Pulling it

The image is in a registry on the download server, so podman and docker pull it by name like any other image:

$ podman pull download.ur.foo-projects.org/sandcastle/container-base
$ docker pull download.ur.foo-projects.org/sandcastle/container-base

With no tag, that's latest, the newest version we've published. Every version is also a tag of its own, and the list of them is one command away:

$ podman pull download.ur.foo-projects.org/sandcastle/container-base:2026.11.1
$ podman search --list-tags download.ur.foo-projects.org/sandcastle/container-base

The registry is read-only and needs no login. It only serves images we've tested and published: the same builds the Download page lists.

Running it

$ podman run --rm -it download.ur.foo-projects.org/sandcastle/container-base
$ docker run --rm -it download.ur.foo-projects.org/sandcastle/container-base

You get a root bash. The image is small on purpose: there's no ps, no grep and no editor until you install them:

bash-5.3# pkg install procps-ng grep vim

Building on it

A Containerfile for podman and a Dockerfile for docker are the same file under two names. podman reads either one; docker wants a Dockerfile, or -f Containerfile. Start FROM the image and install what you need with pkg --yes, which never stops to ask:

FROM download.ur.foo-projects.org/sandcastle/container-base:2026.11.1
RUN pkg --yes upgrade && pkg --yes install python
COPY app.py /srv/app.py
CMD ["python3", "/srv/app.py"]

Saved as Containerfile:

$ podman build -t my-image .
$ podman run --rm my-image

Saved as Dockerfile:

$ docker build -t my-image .
$ docker run --rm my-image

Name a version rather than latest in FROM, so your image only changes base when you decide it should. pkg upgrade then brings the packages in it up to date at build time, without moving to a new base image.

Pinning by digest

A tag says which version you want. A digest says which exact bytes. The digest on the Download page is the manifest digest of the current version, and pulling by it gets you that image and nothing else:

$ podman pull download.ur.foo-projects.org/sandcastle/container-base@sha256:<digest>
$ docker pull download.ur.foo-projects.org/sandcastle/container-base@sha256:<digest>

The same works in FROM. There is no separate checksum step: every layer is named after its own SHA-256 and both tools check each one as they download it, so a digest that matches the Download page vouches for the whole image. podman images --digests and docker images --digests show the digest of what you already have.

Downloading the layout

Every version is also published as an OCI image layout, a plain directory, for a machine that can't reach the registry, or for a mirror of your own. The build's image.json lists every file in it, so fetching it is a loop:

$ base=https://download.ur.foo-projects.org/image/Sandcastle/container-base/x86_64/2026.11.1
$ curl -fsSLO $base/image.json
$ jq -r '.files[].path | select(startswith("container-base/"))' image.json |
    while read -r f; do
      mkdir -p "$(dirname "$f")"
      curl -fsSL -o "$f" "$base/$f"
    done

podman runs it straight from the directory. The tag in the layout is the version:

$ podman run --rm -it oci:$PWD/container-base:2026.11.1

To give it a name a Containerfile can start FROM, copy it into podman's image store once:

$ id=$(podman pull -q oci:$PWD/container-base:2026.11.1)
$ podman tag $id localhost/container-base:2026.11.1

image.json is signed, and checking the layout against it is in the signatures guide.