mirror of https://github.com/01-edu/public.git
xpetit
4 years ago
3 changed files with 16 additions and 27 deletions
@ -1,10 +0,0 @@ |
|||||||
[Unit] |
|
||||||
Description=Docker relocation |
|
||||||
Before=docker.service |
|
||||||
|
|
||||||
[Service] |
|
||||||
ExecStart=/usr/local/bin/mount-docker.sh |
|
||||||
Type=oneshot |
|
||||||
|
|
||||||
[Install] |
|
||||||
RequiredBy=docker.service |
|
@ -1,10 +0,0 @@ |
|||||||
#!/usr/bin/env bash |
|
||||||
|
|
||||||
# Unofficial Bash Strict Mode |
|
||||||
set -euo pipefail |
|
||||||
IFS=' |
|
||||||
' |
|
||||||
|
|
||||||
cp -a /var/lib/docker /tmp |
|
||||||
mount -t tmpfs -osize=2G tmpfs /var/lib/docker |
|
||||||
mv /tmp/docker/* /var/lib/docker |
|
Loading…
Reference in new issue