From 918306f44ff5b683ffee69134ce9083cc2a296d2 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Mon, 5 Jun 2017 18:24:42 +0200 Subject: Unlink old socket before binding new one --- conf.d/99-docker.zsh | 1 + 1 file changed, 1 insertion(+) 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" } -- cgit v1.2.3