Docker container for testing systemd services. It is based on Ubuntu 24.04 LTS and has systemd installed. It is intended for testing systemd services and daemons.
Key features
- The container is privileged and has all capabilities added.
- It also has a volume (/tmp/systemd-test) mounted at /root/ for testing.
- For web services the container exposes port 8081 for testing.
# mkdir /tmp/systemd-test
# docker run -it --privileged --name systemd-container \
-p 8081:8081 \
--cap-add=ALL \
-v /tmp/systemd-test:/root/ \
jezeklu/docker-ubuntu-systemd:latest
# clone repository
git clone [email protected]:jezeklu/docker-ubuntu-systemd.git
# make changes
vim docker-ubuntu-systemd/Dockerfile
# build image localy and test it
docker build -t ubuntu-systemd .