Skip to content

🐳 Ubuntu docker container for use as base for other containers

License

Notifications You must be signed in to change notification settings

devpow112/docker-base-ubuntu

Repository files navigation

Ubuntu (Docker Base Container)

License Release

Ubuntu container for use as base for other containers.

Building

docker build \
  --build-arg "TARGETPLATFORM=..." \
  --build-arg "LANGUAGE=..." \
  --build-arg "ENCODING=..." \
  --build-arg "S6_OVERLAY_VERSION=..." \
  -t base-ubuntu .

Arguments

  • TARGETPLATFORM - Set by Docker Buildx automatically. Currently supported platforms are amd64, arm/v7, arm64, ppc64le and s390x. This should be set automatically even if building locally using standard Docker CLI.
  • LANGUAGE - The language code that is set globally for the system. Defaults to en_US. See locale for more details.
  • ENCODING - Character encoding that is set globally for the system. Defaults to UTF-8. See locale for more details.
  • S6_OVERLAY_VERSION - Version of the s6 overlay that is installed. This is automatically updated to the latest release and should only really need to be set manually if trying out a new version locally when building. Only versions 3 and higher are supported.

Usage

This container is intended to be used as a base for other containers. It will work as an interactive environment but doesn't provide much more then the standard Ubuntu container.

Base Container

This is the intended usage.

FROM ghcr.io/devpow112/base-ubuntu:latest

...

Interactive

Not recommended but will work if you need a quick Ubuntu environment to do testing with.

docker run --it --rm \
  --entrypoint /bin/bash \
  ghcr.io/devpow112/base-ubuntu:latest