Debian Systemd
This Docker image provides a minimal Debian 12 setup with systemd, OpenSSH, and essential tools for containerized environments. It is ideal for running applications requiring systemd inside a container. The image is lightweight, secure, and ready to be customized for various use cases.
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 1 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2025-02-08 |
| Downloads | 0 |
| Last Indexed | 2026-11-23 09:07 |
Tags
Installation
nimble install Debian Systemd
choosenim install Debian Systemd
git clone https://gitlab.com/cool-devops-stuff/debian-systemd
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| Debian Systemd | ✓ | - | - | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/cool-devops-stuff/debian-systemd |
|---|---|
| Homepage | https://gitlab.com/cool-devops-stuff/debian-systemd |
| Registry Source | gitlab |
README
Docker Debian Systemd 🐧
This project is based on the official Debian 12 Slim image (debian:12-slim) and allows you to create a minimalist container containing:
- systemd for service management.
- OpenSSH for SSH connections.
- Other essential tools such as
sudo,bash,vim,net-tools, andiproute2.
✅ Prerequisites
- Docker installed on your machine.
🪄 Building the Image
To build the image from this Dockerfile, use the following command:
$- docker build -t debian-systemd .
🚀 Running the Container
Once the image is built, you can run a container with:
$- docker run --tty --cgroupns=host --privileged --volume /sys/fs/cgroup:/sys/fs/cgroup aminelch/debian-systemd
--privileged: Required forsystemdto function properly inside a Docker container.--volume /sys/fs/cgroup:/sys/fs/cgroup:ro: Allowssystemdto manage control groups (cgroups).
🏠 Accessing the Container
To connect to the container as root:
$- docker exec -it aminelch/debian-systemd bash
If you have configured SSH, you can also connect via SSH with:
$- ssh root@<CONTAINER_IP>
The default password for the root user is password123 (modifiable in the Dockerfile).
❌ Stopping and Removing the Container
To stop the container:
$- docker stop debian-systemd
To remove it:
$- docker rm debian-systemd
🤝 Contribute
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the project.
- Create your branch (
git checkout -b feature/my-new-feature). - Commit your changes (
git commit -m 'Added a new feature'). - Push your branch (
git push origin feature/my-new-feature). - Open a Merge Request.
📧 Contact
For any questions or suggestions, feel free to reach out to me at [aminelch@pm.me].