Use root credentials as fallback if no home is specified

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-11-26 15:37:17 +01:00
parent 11da5c304b
commit 094b266319
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -8,7 +8,7 @@
exec docker run --rm -i \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-v "${HOME}/.docker:/root/.docker:ro" \
-v "${HOME:-/root}/.docker:/root/.docker:ro" \
-v "$(pwd):$(pwd):ro" \
-w "$(pwd)" \
luzifer/docker-compose \