Skip to content

Commit

Permalink
fix: create ~/.docker directory in Docker images (#34)
Browse files Browse the repository at this point in the history
Error:
```
❯ docker run -ti --rm  -v /var/run/docker.sock:/var/run/docker.sock joschi/dive:0.13.0-alpha.1 busybox:latest
Image Source: docker://busybox:latest
Extracting image from docker-engine... (this can take a while for large images)
> could not determine docker host: stat /root/.docker: no such file or directory
cannot fetch image
unable to parse docker host ``
```
  • Loading branch information
joschi authored Nov 7, 2024
1 parent da811f0 commit 1ad30d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ COPY dive /usr/local/bin/
FROM scratch
COPY --from=base / /

RUN mkdir -p /root/.docker

ENTRYPOINT ["/usr/local/bin/dive"]

0 comments on commit 1ad30d6

Please sign in to comment.