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
This commit is contained in:
Ben Brady 2025-03-22 06:40:15 +13:00 committed by GitHub
commit ee49a5174c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,6 +219,10 @@ docker run --rm -it \
-e DOCKER_API_VERSION=1.37 \
ghcr.io/wagoodman/dive:latest <dive arguments...>
```
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