Skip to content

Instantly share code, notes, and snippets.

@frebib
Last active June 11, 2017 11:58
Show Gist options
  • Save frebib/70ed944150438ff39c2799c057bce9c4 to your computer and use it in GitHub Desktop.
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
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