Commit 74b27dd7 authored by nimrod's avatar nimrod
Browse files

Access the Docker socket from a toolbox container.

Instead of using Podman (it's not there yet).
parent 18e8a3dc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -388,10 +388,10 @@ fi

if [ ! -S /var/run/docker.sock ] &&
    [ -z "${DOCKER_HOST:-}" ] &&
    [ -S "$XDG_RUNTIME_DIR/podman/podman.sock" ] &&
    [ -w "$XDG_RUNTIME_DIR/podman/podman.sock" ]
    [ -S "/run/host/run/docker.sock" ] &&
    [ -w "/run/host/run/docker.sock" ]
then
    export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock"
    export DOCKER_HOST="unix:///run/host/run/docker.sock"
fi

if [ "$HOSTNAME" = 'toolbox' ]