mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
updated
This commit is contained in:
parent
bedde4a037
commit
97aae3b330
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