A Docker image based on ubuntu:23.04
that serves as the base image for my downstream Ubuntu-based Docker images. Includes tini
as the PID 0 process and runs as a user named "default".
docker pull kristinjeanna/ubuntu
First, clone this repo. Then, use one of the following two methods to create the Docker image. The image will be labelled kristinjeanna/ubuntu:latest
and can be used to construct downstream images.
At a command prompt, cd
to the source directory of the cloned repo, and build with:
./build.sh
This script will scrub a previous kristinjeanna/ubuntu
image prior to performing the build.
At a command prompt, cd
to the source directory of the cloned repo, and build with:
docker build -t kristinjeanna/ubuntu -f Dockerfile .
The following runs the image and results in a bash prompt in the running container:
docker run -ti --rm kristinjeanna/ubuntu
By default, the image runs as a user named "default". To run as root, add --user=root
to the command:
docker run -ti --rm --user=root kristinjeanna/ubuntu