Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker install fails on OSx

Tags:

docker

macos

I am trying to install new Docker on OSx.

It fails with following error.

Installation Failed.

Also the window opens where I can see two utilities:

  • Docker Quick Terminal
  • Kinematic

When I click Docker Quick Terminal I can type:

docker info

But when I type:

docker run

I get the error.

Image install failed

sudo docker run -i -t ubuntu /bin/bash
Password:
Post http:///var/run/docker.sock/v1.20/containers/create: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?
bash-4.3$
like image 522
user2230605 Avatar asked Aug 18 '15 00:08

user2230605


People also ask

Does Docker need admin rights Mac?

In the default set up flow, Docker Desktop for Mac does not require root privileges for installation but does require root access to be granted on the first run. The first time that Docker Desktop is launched the user receives an admin prompt to grant permissions for a privileged helper service to be installed.

Does Docker work on High Sierra?

Docker Desktop currently supports macOS Catalina, macOS Mojave, and macOS High Sierra. As new major versions of macOS are made generally available, Docker stops supporting the oldest version and support the newest version of macOS (in addition to the previous two releases).


2 Answers

Just ran into the same thing. I did have a virtual machine running but was still getting that error when I tried to use the command line. When I ran docker-machine env default to see the state of my docker VM named default I was prompted to run a command, eval "$(docker-machine env default)" to initialize my shell. That step got everything working for me.

The details, as it turns out, are at the top of the README for docker/machine on github.

like image 89
Kevin Avatar answered Oct 15 '22 22:10

Kevin


Check if vbox is running; if not, start it (replace default with your vbox name):

$ docker-machine start default

And then do as Kevin above replied:

eval "$(docker-machine env default)"
like image 33
user5412108 Avatar answered Oct 16 '22 00:10

user5412108