Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.2 KB

README.md

File metadata and controls

67 lines (43 loc) · 2.2 KB

kristinjeanna/docker-alpine

GitHub license Latest Docker tag Last commit

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

Requirements

How to obtain the image

Pull from Docker Hub

docker pull kristinjeanna/alpine

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/alpine: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/alpine 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/alpine -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/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

See also