Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dive with docker-machine on Mac? #59

Closed
miketitus opened this issue Nov 2, 2018 · 2 comments
Closed

Use dive with docker-machine on Mac? #59

miketitus opened this issue Nov 2, 2018 · 2 comments

Comments

@miketitus
Copy link

The dive install instructions include the option for installing dive to a Mac using brew. However, it's not apparent if there's anyway to use dive with docker-machine on a Mac.

$ docker-machine ls
NAME      ACTIVE   DRIVER   STATE     URL                       SWARM   DOCKER        ERRORS
default   *        xhyve    Running   tcp://192.168.64.2:2376           v18.06.1-ce
$ dive busybox
Analyzing Image
Using default tag: latest
latest: Pulling from library/busybox
Digest: sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812
Status: Image is up to date for busybox:latest
  Fetching metadata...
  Fetching image...panic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

It's clear why this error is happening: docker-machine doesn't open a socket in /var/run. Is there any workaround for this? Thanks.

@wagoodman
Copy link
Owner

The latest v0.1.0 of dive should respond to the DOCKER_HOST env var, allowing connections to remote docker daemons.

Let me know how it goes!

@miketitus
Copy link
Author

I ran brew upgrade dive and it upgraded from 0.0.8 to 0.1.0 and now it works correctly. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants