Docker tmpfs systemd

Создаем override.conf для сервиса docker командой systemctl edit docker.service:

[Service]
ExecStartPre=/usr/bin/env install -m 711 -o root -g root -vd /var/lib/docker_ /var/lib/docker
ExecStartPre=/usr/bin/env mount -t tmpfs none /var/lib/docker
ExecStartPre=/usr/bin/env rsync -a /var/lib/docker_ …
more ...