Skip to content

Linux based docker images with gosu support to run as non-root user

License

Notifications You must be signed in to change notification settings

daniccan/docker-gosu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-GoSu

Linux based Docker images with gosu support to run as non-root user.

Usage

  • Import the docker-gosu image as the base image in your Dockerfile.
FROM daniccan/ubuntu-gosu:18.04

....
....
  • To run your container as a non-privileged user.
docker run -it your-image
  • To run your container as a non-privileged user with the same permissions as the host system user.
docker run -it -e LOCAL_USER_ID=`id -u $USER` your-image

Supported Linux Distros

Linux Distro Version(s) Docker Repo
Ubuntu latest, 18.04 (bionic), 16.04 (xenial), 14.04 (trusty) daniccan/ubuntu-gosu
CentOS 6, 7, 8 daniccan/centos-gosu

Issues

Find any bugs or need additional features? Please don't hesitate to create an issue.

License

MIT Copyright (c) 2020 daniccan

About

Linux based docker images with gosu support to run as non-root user

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published