Sign inSign up

geoffh1977/alpine

By geoffh1977

•Updated almost 2 years ago

Alpine Linux with non-root user

Image
0

9.0K

geoffh1977/alpine repository overview

⁠Alpine Docker Image With Non-Root Account

pipeline_status docker_downloads

⁠Description

Builds a slightly modified Alpine Docker image by adding a non-user account and setting the account as the default user.

By doing this, the following issues are prevented:

  • Stops the image from immediately having root level access to a docker host - The switch --user 0 would need to be added to have the container run as the root user.
  • Requires that the command USER root is specifically called before modifying the image during the build process - Some builds do not require the root user for container builds to be completed.

⁠Downloading The Alpine Container

This repository is connected to Docker Hub - so you will always find the latest builds there. Execute the docker pull command in order to get the required image:

  • geoffh1977/alpine:latest - The latest build that was completed
  • geoffh1977/alpine:3 - The latest build of a Major version number
  • geoffh1977/alpine:3.16 - The latest build of a Minor version series
  • geoffh1977/alpine:3.16.0 - An Exact Version

Tag summary

Content type

Image

Digest

sha256:28f5c9db5…

Size

3.2 MB

Last updated

almost 2 years ago

docker pull geoffh1977/alpine