mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
14 lines
281 B
Bash
Executable file
14 lines
281 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Run the lazy docker for podman installations. Auto starts as root.
|
|
|
|
# Run as root
|
|
if [[ $EUID -ne 0 ]]; then
|
|
exec sudo $0 "$@"
|
|
exit $?
|
|
fi
|
|
|
|
# Run and connect to podman host
|
|
: "${DOCKER_HOST:="unix:///run/podman/podman.sock"}"
|
|
export DOCKER_HOST
|
|
lazydocker "$@"
|