Image for running CentOS 7 in a docker desktop container (for local dev and provisioning testing)
docker run \
--rm \
--detach \
--interactive \
--tty \
--publish 322:22 \
--tmpfs /run:exec \
--tmpfs /tmp:exec \
--privileged \
--name centos-systemd \
mageops/centos-systemd
Mount host's read-only /sys/fs/cgroup
- it's needed for systemd to function at all.
docker run \
--rm \
--detach \
--interactive \
--tty \
--publish 322:22 \
--tmpfs /tmp:exec \
--tmpfs /run \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--name centos-systemd \
mageops/centos-systemd