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.

Stale Pure Nim score 23/100 · last commit 2025-02-08 · 1 stars · tests present · no docs generated

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

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 ✓ - - - - - - - - -

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, and iproute2.

✅ 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 for systemd to function properly inside a Docker container.
  • --volume /sys/fs/cgroup:/sys/fs/cgroup:ro: Allows systemd to 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:

  1. Fork the project.
  2. Create your branch (git checkout -b feature/my-new-feature).
  3. Commit your changes (git commit -m 'Added a new feature').
  4. Push your branch (git push origin feature/my-new-feature).
  5. Open a Merge Request.

📧 Contact

For any questions or suggestions, feel free to reach out to me at [aminelch@pm.me].