diff options
author | Till Höppner | 2017-06-05 18:24:42 +0200 |
---|---|---|
committer | Till Höppner | 2017-06-05 18:24:42 +0200 |
commit | 918306f44ff5b683ffee69134ce9083cc2a296d2 (patch) | |
tree | 1a7365a159e0407e445d8805f48a1611ad4b7110 | |
parent | d76c4d8985cae86fd1f2b00c4690f1d2720c63a4 (diff) | |
download | zsh-918306f44ff5b683ffee69134ce9083cc2a296d2.tar.gz zsh-918306f44ff5b683ffee69134ce9083cc2a296d2.tar.xz zsh-918306f44ff5b683ffee69134ce9083cc2a296d2.zip |
Unlink old socket before binding new one
-rw-r--r-- | conf.d/99-docker.zsh | 1 |
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" } |