mirror of
https://github.com/containers/podman.git
synced 2025-05-17 06:59:07 +08:00

Rootless users should be defaulted to point DOCKER_HOST at $XDG_RUNTIME_DIR/podman/podman.sock When podman-docker package is installed. [NO NEW TESTS NEEDED] Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
11 lines
260 B
Tcsh
11 lines
260 B
Tcsh
# DOCKER_HOST initialization
|
|
|
|
if ($?DOCKER_HOST) exit
|
|
if ( "$euid" == 0 ) then
|
|
setenv DOCKER_HOST unix:///run/podman/podman.sock
|
|
else
|
|
if ($?XDG_RUNTIME_DIR) then
|
|
setenv DOCKER_HOST unix://$XDG_RUNTIME_DIR/podman/podman.sock
|
|
endif
|
|
endif
|