testing
This commit is contained in:
16
roles/podman/files/docker-host.sh
Normal file
16
roles/podman/files/docker-host.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
# shellcheck shell=bash
|
||||
if [ "$UID" -ne 0 ]; then
|
||||
DOCKER_HOST="unix:///run/user/$UID/podman/podman.sock"
|
||||
export DOCKER_HOST
|
||||
|
||||
if [ -z "${XDG_RUNTIME_DIR:-}" ] && [ -d "/run/user/$UID" ]; then
|
||||
XDG_RUNTIME_DIR="/run/user/$UID"
|
||||
export XDG_RUNTIME_DIR
|
||||
fi
|
||||
|
||||
if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ] && [ -S "$XDG_RUNTIME_DIR/bus" ];
|
||||
then
|
||||
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user