From 74b27dd7f39ca975bc2efb2be142429fa643b1c8 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 11 Jul 2021 18:17:44 +0300 Subject: [PATCH] Access the Docker socket from a toolbox container. Instead of using Podman (it's not there yet). --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index e7d4b98..01d20c7 100644 --- a/.bashrc +++ b/.bashrc @@ -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' ] -- GitLab