From ee49a5174c0627620510ca04e693b7d749ae270d Mon Sep 17 00:00:00 2001 From: Ben Brady <86134744+benjamin-brady@users.noreply.github.com> Date: Sat, 22 Mar 2025 06:40:15 +1300 Subject: [PATCH] Update README.md with DOCKER_HOST env var instructions (#565) I had an error pulling local images. Setting the DOCKER_HOST env var fixed this problem for me. This has has been mentioned in issues such as https://github.com/wagoodman/dive/issues/542#issuecomment-2267720375 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0b1759c..460285a 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,10 @@ docker run --rm -it \ -e DOCKER_API_VERSION=1.37 \ ghcr.io/wagoodman/dive:latest ``` +if you are using an alternative runtime (Colima etc) then you may need to specify the docker host as an environment variable in order to pull local images: +```bash + export DOCKER_HOST=$(docker context inspect -f '{{ .Endpoints.docker.Host }}') +``` ## CI Integration