summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/99-docker.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.d/99-docker.zsh b/conf.d/99-docker.zsh
index 3ff8aa4..b2de0b7 100644
--- a/conf.d/99-docker.zsh
+++ b/conf.d/99-docker.zsh
@@ -9,6 +9,7 @@ alias dlog='d logs --follow --timestamps --tail=10000'
dadopt() {
local remote="$1"
local sock="/tmp/$remote.sock"
+ unlink "$sock"
ssh -nNT -L "$sock:/var/run/docker.sock" "$remote" &
export DOCKER_HOST="unix://$sock"
}