- Dockerfile 100%
| .gitlab-ci.yml | ||
| bash.bashrc | ||
| Dockerfile | ||
| LICENSE | ||
| original-README.md | ||
| README.md | ||
| screenshot.png | ||
| suicide-linux-qntm.md | ||
SUICIDE LINUX
Enjoy this minimal Debian-based Linux image and customize it as needed.
docker run --rm -it registry.gitlab.com/pilasguru/suicide-linux
Important safety note
This image runs as root so you can install packages inside the container.
The wipe routine reads /proc/self/mountinfo and prunes sub-mounts from find, reducing the chance of touching bind mounts.
Even with this protection, do not mount sensitive host paths (for example -v /:/host), because container isolation is not a hard security boundary.
Prompt and game behavior
Each prompt shows a success counter. The prompt is rendered in two lines:
[0]
/ $ ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[1]
/ $ echo I am perfect!
I am perfect!
[2]
/ $
If a command exits with an error, the counter resets and the prompt includes the exit code:
[237]
/ $ tar mt
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now
[0 2]
/ $
If you enter an unknown command, the wipe routine starts and the counter goes back to [0].
History and motivation
Original (pre-2019)
The original concept and project come from tiagoad/suicide-linux, with a full explanation in Suicide Linux (and a local copy in suicide-linux-qntm.md, captured in 2024).
The initial idea behind Suicide Linux was to execute rm -rf / to wipe the drive.
This fork
While the original approach works, it can produce noisy output, execution errors, and prompt degradation.
This fork aims to keep a usable prompt while disabling executables quickly after an unknown command, so the environment reaches the "suicide state" with less intermediate instability.
The original README from this fork's early versions is available at original-README.md.
Update 2024
As of 2024, this repository was updated to use Debian Slim as a base and improve wipe speed and output.
Update 2026
In 2026, the wipe logic was hardened to prune sub-mounts discovered from /proc/self/mountinfo, the image kept root for package installation, and CI gained smoke tests for build and invalid-command behavior.
License
This is a derivative work.
The fork-specific development is licensed under WTFPL.