We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lazydocker on podman
1 parent 383207e commit bbdfadfCopy full SHA for bbdfadf
conf.d/zsh/exports.zsh
@@ -92,7 +92,15 @@ fi
92
93
# set DOCKER_HOST for lazydocker if podman exists
94
if (( $+commands[podman] )); then
95
- export DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')
+ if (( $OSTYPE[(I)darwin] )); then
96
+ export DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')
97
+ elif (( $OSTYPE[(I)linux-gnu] )); then
98
+ # systemctl --user enable --now podman.socket
99
+ export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
100
+ else
101
+ echo 'Unknown OS for lazypodman!'
102
+ fi
103
+ alias docker='podman'
104
fi
105
106
# vim: set ft=sh :
0 commit comments