Last active
September 13, 2018 10:41
-
-
Save kiorky/3e9ad0cc830e3288eea622bf0ecf60fc to your computer and use it in GitHub Desktop.
docker systemd
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.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