Skip to content

Instantly share code, notes, and snippets.

@hummerbliss
Forked from tjdett/systemd-in-rkt.sh
Created August 28, 2021 10:35
Show Gist options
  • Save hummerbliss/d62e3447ad0aa49e8b5e622a04d8e33e to your computer and use it in GitHub Desktop.
Save hummerbliss/d62e3447ad0aa49e8b5e622a04d8e33e 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