A Docker image based on the alpine:latest
that serves as the base image for my downstream alpine-based Docker images. Includes tini
as the PID 0 process and runs as a user named "default".
docker pull kristinjeanna/alpine
First, clone this repo. Then, use one of the following two methods to create the Docker image. The image will be labelled kristinjeanna/alpine: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/alpine
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/alpine -f Dockerfile .
The following runs the image and results in a bash prompt in the running container:
docker run -ti --rm kristinjeanna/alpine
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/alpine