- Shell 80.7%
- Dockerfile 10.5%
- C 8.8%
| .gitignore | ||
| build.sh | ||
| Dockerfile | ||
| LICENSE | ||
| main.c | ||
| README.md | ||
nothing
A Docker Container that does nothing, forever. Useful if you need to configure other container, like traefik or caddy using labels.
Important
The version of this repository you are seeing is likely a mirror.
If you want to contribute any changes please head over to git.watn3y.de and register an account.
Why this exists
I use lucaslorentz/caddy-docker-proxy to automatically configure caddy based on docker container labels. For better readability I wanted to split-up the config into multiple containers. While it's possible to use something like docker run alpine:latest sleep infinity for this, I wanted something with a smaller image, less resource usage and a smaller attack surface.
This is where nothing comes in. The image is about 3,8 KB in size and uses about 300 KiB of memory at runtime. Due it only being made up of 18 lines of code the attack surface is basically non existant. Problem Solved :)
Running with Docker Compose
The Docker image is available on these registries.
- git.watn3y.de - includes all tags
- Docker Hub - includes only releases
Example compose file:
services:
nothing:
image: watn3y/nothing:v1.0.0
# image: git.watn3y.de/watn3y/nothing:latest # Use :latest to be up to date with the master branch on git
container_name: nothing
restart: unless-stopped
labels:
- whatever.you.want: true