-
-
Save hummerbliss/d62e3447ad0aa49e8b5e622a04d8e33e to your computer and use it in GitHub Desktop.
Run systemd init in a rkt container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo `which rkt` run --interactive \ | |
--volume volume-sys-fs-cgroup,kind=host,source=/sys/fs/cgroup,readOnly=true \ | |
--insecure-options=image,seccomp,capabilities \ | |
docker://fedora/systemd-systemd --exec /bin/bash -- \ | |
-c "exec unshare --pid --fork --mount-proc /sbin/init" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment