Skip to content

Instantly share code, notes, and snippets.

@tjdett
Created October 19, 2016 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tjdett/1a78ebaad6e57a44c682d4014a8bb7ae to your computer and use it in GitHub Desktop.
Save tjdett/1a78ebaad6e57a44c682d4014a8bb7ae to your computer and use it in GitHub Desktop.
Run systemd init in a rkt container
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