Last active
June 11, 2017 11:58
-
-
Save frebib/70ed944150438ff39c2799c057bce9c4 to your computer and use it in GitHub Desktop.
An example of running systemd in docker, using archlinux. This example has no reliance on --privileged
This file contains 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
version: "3.1" | |
services: | |
systemd-test: | |
image: finalduty/archlinux | |
restart: always | |
entrypoint: /lib/systemd/systemd | |
environment: | |
- container=docker | |
tmpfs: | |
- /run | |
- /tmp | |
security_opt: | |
- seccomp:unconfined | |
volumes: | |
- /sys/fs/cgroup:/sys/fs/cgroup:ro | |
stop_signal: SIGRTMIN+3 | |
# vim: sw=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment