Short Description
CentOS 7 container with systemd as pid 1
Full Description
This container runs systemd and does nothing else.
You can:
- Start it with
docker run --privileged -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro rasschaert/systemd_centos7
- Create a bash session with nsenter
- install, configure and start another service
- Create a more useful image with docker commit.
All credit for getting this to work goes to Dan Walsh, you can read more about it on his blog.
Motiejus Jakštys has made a very similar container image that also spawns a bash shell immediatly in the foreground.
I prefer my approach, with nsenter, at least until docker implements a similar mechanism.
Docker Pull Command
Owner
rasschaert