A Debian docker image with built-in systemd and ssh.
⚠️ Take a look on Docksible to help you manage easily this image and test your deployments with Ansible.
❕ The image tag corresponds to the debian stable version.
Debian Version | Docker image tag |
---|---|
Bullseye | latest |
Bullseye | v11 |
docker pull sramz/debian-systemd-ssh:latest
⚠️ Inside the container the root password is root by default. Of course, you should change it!
docker run \
-tid --privileged \
-v /sys/fs/cgroup:/sys/fs/cgroup \
--cgroupns=host \
sramz/debian-systemd-ssh:latest
Then, execute for example a shell inside your container:
docker exec ti <id_or_tag_of_your_container> bash
- roberdebock for his Dockerfile.