Skip to content

Instantly share code, notes, and snippets.

@kiorky
Last active September 13, 2018 10:41
Show Gist options
  • Save kiorky/3e9ad0cc830e3288eea622bf0ecf60fc to your computer and use it in GitHub Desktop.
Save kiorky/3e9ad0cc830e3288eea622bf0ecf60fc to your computer and use it in GitHub Desktop.
docker systemd
---
version: '3.6'
x-image: &image_template
image: "corpusops/debian"
environment:
- a=1
command: >
sh -c 'if [ "x$DOCKER_SKIP_START" != x ];
then while true;do echo sleeping;sleep 65535;done
else exec /app_entry_point;
fi'
tmpfs: [/run, /run/lock]
volumes: &image_volumes
# systemd
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
services:
myimage:
<<: [ *image_template ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment