summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2017-06-05 18:24:42 +0200
committerTill Höppner2017-06-05 18:24:42 +0200
commit918306f44ff5b683ffee69134ce9083cc2a296d2 (patch)
tree1a7365a159e0407e445d8805f48a1611ad4b7110
parentd76c4d8985cae86fd1f2b00c4690f1d2720c63a4 (diff)
downloadzsh-918306f44ff5b683ffee69134ce9083cc2a296d2.tar.gz
zsh-918306f44ff5b683ffee69134ce9083cc2a296d2.tar.xz
zsh-918306f44ff5b683ffee69134ce9083cc2a296d2.zip
Unlink old socket before binding new one
-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"
}