https://github.com/dannyben/docker-ubuntu
Ubuntu sandbox with non-root user
https://github.com/dannyben/docker-ubuntu
Last synced: about 1 year ago
JSON representation
Ubuntu sandbox with non-root user
- Host: GitHub
- URL: https://github.com/dannyben/docker-ubuntu
- Owner: DannyBen
- Created: 2018-08-18T14:12:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T11:11:59.000Z (over 1 year ago)
- Last Synced: 2025-03-28T02:27:58.612Z (over 1 year ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sandbox Ubuntu Image
This ubuntu image attempts to immitate a standard (non docker) ubuntu
workstation.
It contains the essential packages pre-installed, and a non root user
(with `sudo` privileges) named `ubuntu`
## Usage
$ docker run --rm -it dannyben/ubuntu
## Using it as a base image
Since this image sets the user to `ubuntu`, if you need to execute commands
that require root access in your image, you need to use this pattern:
```dockerfile
FROM dannyben/ubuntu
USER root
# root stuff goes here
USER ubuntu
```
---
- [On Docker Hub](https://hub.docker.com/r/dannyben/ubuntu/)
- [On GitHub](https://github.com/DannyBen/docker-ubuntu)