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