From 094b26631927891756023ef858135d1fa83306a7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 26 Nov 2019 15:37:17 +0100 Subject: [PATCH] Use root credentials as fallback if no home is specified Signed-off-by: Knut Ahlers --- tasks/docker-wrapper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/docker-wrapper.yml b/tasks/docker-wrapper.yml index 03c6f32..8f98d0e 100644 --- a/tasks/docker-wrapper.yml +++ b/tasks/docker-wrapper.yml @@ -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 \