Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diixo/viix-img
A minimal Ubuntu base image modified for Docker-friendliness
https://github.com/diixo/viix-img
docker docker-image docker-starter ubuntu-packages ubuntu22
Last synced: about 1 month ago
JSON representation
A minimal Ubuntu base image modified for Docker-friendliness
- Host: GitHub
- URL: https://github.com/diixo/viix-img
- Owner: diixo
- License: mit
- Created: 2024-11-26T05:07:47.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-30T22:03:07.000Z (about 1 month ago)
- Last Synced: 2024-11-30T22:40:01.700Z (about 1 month ago)
- Topics: docker, docker-image, docker-starter, ubuntu-packages, ubuntu22
- Language: Python
- Homepage:
- Size: 362 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# viix : minimal Ubuntu base image modified for Docker-friendliness
Fork of [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker)
Current version was adapted for ubuntu: 22.04
## build
```
docker build -f image/Dockerfile -t viix:22.04 .
```## run
```
docker run -d --name viix-container viix:22.04
```## access into docker
```
winpty docker exec -it viix-container bash
```## SSH status
```
service ssh status
```## stop all active containers
```
docker stop $(docker ps -q)
```### What are the problems with the stock Ubuntu base image?
Ubuntu is not designed to be run inside Docker. Its init system, Upstart, assumes that it's running on either real hardware or virtualized hardware, but not inside a Docker container. But inside a container you don't want a full system anyway, you want a minimal system. But configuring that minimal system for use within a container has many strange corner cases that are hard to get right if you are not intimately familiar with the Unix system model. This can cause a lot of strange problems.
Baseimage-docker gets everything right. The "Contents" section describes all the things that it modifies.
### Why use baseimage-docker?
You can configure the stock ubuntu image yourself from your Dockerfile, so why bother using baseimage-docker?Configuring the base system for Docker-friendliness is no easy task. As stated before, there are many corner cases. By the time that you've gotten all that right, you've reinvented baseimage-docker. Using baseimage-docker will save you from this effort.
* It sets up the base system correctly. Many people may not think so, but Unix has many corner cases caused by decades of cruft. Getting them wrong can result in very strange problems. This image does everything correctly. Learn more.
* It reduces the time needed to run docker build, allowing you to iterate your Dockerfile more quickly.
* It reduces download time during redeploys. Docker only needs to download the base image once: during the first deploy. On every subsequent deploys, only the changes you make on top of the base image are downloaded.## Contents
Baseimage-docker only contains essential components. Learn more about the rationale.
**Ubuntu 22.04 LTS** as base system.
* A correct init process [learn more](https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/).
* Fixes APT incompatibilities with Docker.
* syslog-ng.
* The cron daemon.
* An optional SSH server (disabled by default), for those use cases where docker exec is inappropriate.
Password and challenge-response authentication are disabled by default. Only key authentication is allowed.
* It allows an predefined key by default to make debugging easy. You should replace this ASAP. See instructions.
* [Runit](https://smarden.org/runit) for service supervision and management.[Learn more](https://github.com/phusion/baseimage-docker)
## References:
* **Source**: https://github.com/phusion/baseimage-docker
* **Source**: https://github.com/phusion/baseimage-docker/releases?page=3
* **Source**: https://registry.hub.docker.com/r/phusion/baseimage/
* **Source**: https://hub.docker.com/r/phusion/baseimage/tags* **Dockerfile.txt** is from https://github.com/diixo/docker-sge/Dockerfile