mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Merge 97aae3b330 into 7e7aadc207
This commit is contained in:
commit
66f0f8f7eb
1 changed files with 14 additions and 0 deletions
14
scripts/lazypodman
Executable file
14
scripts/lazypodman
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/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 "$@"
|
||||||
Loading…
Add table
Reference in a new issue