Skip to content

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".

License

Notifications You must be signed in to change notification settings

kristinjeanna/docker-ubuntu-jre8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kristinjeanna/docker-ubuntu-jre8

GitHub license Latest Docker tag Last commit

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".

Requirements

How to obtain the image

Pull from Docker Hub

docker pull kristinjeanna/ubuntu-jre8

Manually building the image

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.

Method 1

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.

Method 2

At a command prompt, cd to the source directory of the cloned repo, and build with:

docker build -t kristinjeanna/ubuntu-jre8 -f Dockerfile .

Run the image

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

See also

About

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".

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published