Skip to content

Getting started with images

Docker is a containerization platform for building, sharing, and running your applications. Docker applications run in containers that can be used on any system: a laptop, desktop systems, servers, or in the cloud. A container is a standard unit of software that packages up code and all its dependencies, so the application runs quickly and reliably from one computing environment to another. Docker provides a set of tools for building and sharing container images, and running containers at any scale.

For more information, visit Docker website.

Podman is a daemonless, open-source Linux native tool designed to make it easy to find, run, build, share, and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Containers under the control of Podman can either be run by root or by a non-privileged user.

For more information, visit Podman website.

BellSoft Alpaquita Linux images come ready for several language ecosystems, so you can pick a base that already ships your toolchain:

  • C/C++ — the GCC compiler, tools, and libraries.
  • Go — for building Go applications.
  • Node.js — with npm and related utilities.
  • Python — with pip3, wheel, and setuptools.
  • Java — Liberica JDK, the TCK-verified, 100 % open-source OpenJDK runtime from a major OpenJDK contributor. See the Liberica JDK documentation.

Each ecosystem ships in musl and glibc variants. The available images below list the tags for each.

BellSoft provides a number of Docker images with Alpaquita Linux. They are hosted on the Docker Hub Container Image Library available at https://hub.docker.com/u/bellsoft. Typically, downloading publicly available images does not require authentication.

Alpaquita Linux images are published on all major container registries. The repository name is the same across registries; only the pull-URL prefix differs.

RegistryPull-URL prefixAuthentication
Docker Hubbellsoft/<repository>:<tag>No
GitHub Container Registryghcr.io/bell-sw/<repository>:<tag>No
Microsoft Container Registrybellsoft.azurecr.io/<repository>:<tag>No
Google Container Registryus-docker.pkg.dev/bellsoft/gcr.io/<repository>:<tag>Yes
Amazon ECRpublic.ecr.aws/bellsoft/<repository>:<tag>No

The following examples pull the base image from each registry:

Terminal window
docker pull bellsoft/alpaquita-linux-base:musl

Images are grouped in several repositories, and each repository contains a number of tags. Each tag points to a Docker image.

To create a container from an image with a tag <image_tag> stored in a repository <repository>, do one of the following.

  • Download the image using docker pull:

    Terminal window
    docker image pull docker bellsoft/<repository>:<image_tag>

    and start a container from that image with docker run:

    Terminal window
    docker run -it --rm bellsoft/<repository>:<image_tag>
  • Instead of two consecutive commands, you can combine two operations in a single docker run execution:

    Terminal window
    docker container run --rm -it bellsoft/<repository>:<image_tag>

    For example:

    Terminal window
    docker container run --rm -it bellsoft/alpaquita-linux-base:musl

If the :<image_tag> part is omitted, it is implicitly substituted with :latest, that is the command is executed with the latest tag.

For hardened (near-zero-CVE) images, see Hardened Images.

The repository contains base Alpaquita Linux images.

The following are available tags for images based on musl or glibc Alpaquita Linux version:

  • musl
  • glibc

For example:

Terminal window
docker run --rm bellsoft/alpaquita-linux-base:musl cat /etc/os-release
NAME="BellSoft Alpaquita Linux"
ID=alpaquita
ID_LIKE=alpine
VERSION="Stream"
VERSION_ID=stream
PRETTY_NAME="BellSoft Alpaquita Linux Stream (musl)"
HOME_URL="https://bell-sw.com/"
BUG_REPORT_URL="https://bell-sw.com/support/"
LIBC_TYPE=musl

Liberica JDK runtime images (bellsoft/liberica-runtime-container and its hardened variant) are documented in Liberica JDK container images. Liberica NIK images (bellsoft/liberica-native-image-kit-container) are documented in Liberica NIK container images.

Alpaquita Linux can act as a host system for running containers. Docker and Podman tools are included in the package, which can be installed from the package repository. The setup is different for different tools. The following section describes how to set up the Podman tool. The setup includes the following steps:

  1. Run the following command:

    Terminal window
    sudo apk add fuse-overlay podman
  2. Set /etc/subuid and /etc/subgid values to specify the range of UIDs for users and allow Podman to run containers in the appropriate user namespace.

  3. Since Alpaquita Linux does not use systemd, you may need to run the following command:

    Terminal window
    sudo mount --make-rshared /
  4. Run the following command to set up cgroups:

    Terminal window
    sudo rc-update add cgroups; sudo rc-service cgroups start
  5. To enable cgroups V2, edit /etc/rc.conf and enable the “unified” option for rc_cgroup_mode.

  6. Load the modules that are not loaded by default:

    Terminal window
    sudo modprobe tun; sudo modprobe fuse

Now you can use Podman to run containers with BellSoft images.