Fatal Error: com.docker.supervisor failed to start. Exit code 1 at docker startup on mac
Expected behavior
Docker to start
Actual behavior
Fatal Error: com.docker.supervisor failed to start. Exit code 1
Information
Docker for Mac: version: 17.12.0-ce-mac47 (72b93a017350990850ddc37cd341bd16fce3e911)
macOS: version 10.12.1 (build: 16B2657)
logs: /tmp/3DFF0025-EC0D-45BA-9255-848CA0D1A305/20180130-063801.tar.gz
failure: com.docker.vpnkit is not running
[OK] db.git
[OK] vmnetd
[OK] dns
[ERROR] driver.amd64-linux
com.docker.driver.amd64-linux is not running
[OK] virtualization VT-X
[OK] app
[ERROR] moby
/Users/marcelo/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring does not exist
[OK] system
[OK] moby-syslog
[OK] kubernetes
[OK] env
[OK] virtualization kern.hv_support
[ERROR] slirp
Unexpected error ((Failure
"Error connecting socket to 9p endpoint unix:/Users/marcelo/Library/Containers/com.docker.docker/Data/s51: Unix.Unix_error(Unix.ECONNREFUSED, \"connect\", \"\")")) connecting to /Users/marcelo/Library/Containers/com.docker.docker/Data/s51
com.docker.vpnkit is not running
slirp check failed with: Unix.Unix_error(Unix.ECONNREFUSED, "connect", "")
[ERROR] osxfs
com.docker.osxfs is not running
[OK] moby-console
[OK] logs
[ERROR] docker-cli
Connection refused (ECONNREFUSED) connecting to /var/run/docker.sock: check if service is running
Connection refused (ECONNREFUSED) connecting to /Users/marcelo/Library/Containers/com.docker.docker/Data/s60: check if service is running
docker ps failed
[OK] menubar
[OK] disk
Steps to reproduce the behavior
- Start docker
- Fatal Error: com.docker.supervisor failed to start. Exit code 1
Please try a more recent version.
I seem to have the same error with 17.12.0-ce-mac49
Diagnostic ID: 394FD4C2-1D3B-485D-8ABE-5915E4BE1541
Docker for Mac: version: 17.12.0-ce-mac49 (d1778b704353fa5b79142a2055a2c11c8b48a653)
macOS: version 10.13.3 (build: 17D47)
logs: /tmp/394FD4C2-1D3B-485D-8ABE-5915E4BE1541/20180131-110051.tar.gz
failure: com.docker.vpnkit is not running
[OK] db.git
[OK] vmnetd
[OK] dns
[ERROR] driver.amd64-linux
com.docker.driver.amd64-linux is not running
[OK] virtualization VT-X
[OK] app
[OK] moby
[OK] system
[OK] moby-syslog
[OK] kubernetes
[OK] env
[OK] virtualization kern.hv_support
[ERROR] slirp
Unexpected error ((Failure
"Error connecting socket to 9p endpoint unix:/Users/didikohen/Library/Containers/com.docker.docker/Data/s51: Unix.Unix_error(Unix.ECONNREFUSED, \"connect\", \"\")")) connecting to /Users/didikohen/Library/Containers/com.docker.docker/Data/s51
com.docker.vpnkit is not running
slirp check failed with: Unix.Unix_error(Unix.ECONNREFUSED, "connect", "")
[ERROR] osxfs
com.docker.osxfs is not running
[OK] moby-console
[OK] logs
[ERROR] docker-cli
Connection refused (ECONNREFUSED) connecting to /var/run/docker.sock: check if service is running
Connection refused (ECONNREFUSED) connecting to /Users/didikohen/Library/Containers/com.docker.docker/Data/s60: check if service is running
docker ps failed
[OK] menubar
[OK] disk
@kohend I have read your logs, but don't see what's going on. Did you do anything special?
Does it work after reset to factory defaults?
@akimd Same problem using the latest version (edge)
Docker for Mac: version: 18.02.0-ce-rc1-mac50 (e1912a8c46ae6f60a85d277f7b8d210dc9670b28)
macOS: version 10.12.1 (build: 16B2657)
logs: /tmp/3DFF0025-EC0D-45BA-9255-848CA0D1A305/20180201-141135.tar.gz
failure: com.docker.vpnkit is not running
[OK] db.git
[OK] vmnetd
[OK] dns
[ERROR] driver.amd64-linux
com.docker.driver.amd64-linux is not running
[OK] virtualization VT-X
[OK] app
[ERROR] moby
/Users/marcelo/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring does not exist
[OK] system
[OK] moby-syslog
[OK] kubernetes
[OK] env
[OK] virtualization kern.hv_support
[ERROR] slirp
Unexpected error ((Failure
"Error connecting socket to 9p endpoint unix:/Users/marcelo/Library/Containers/com.docker.docker/Data/s51: Unix.Unix_error(Unix.ECONNREFUSED, \"connect\", \"\")")) connecting to /Users/marcelo/Library/Containers/com.docker.docker/Data/s51
com.docker.vpnkit is not running
slirp check failed with: Unix.Unix_error(Unix.ECONNREFUSED, "connect", "")
[ERROR] osxfs
com.docker.osxfs is not running
[OK] moby-console
[OK] logs
[ERROR] docker-cli
Connection refused (ECONNREFUSED) connecting to /var/run/docker.sock: check if service is running
Connection refused (ECONNREFUSED) connecting to /Users/marcelo/Library/Containers/com.docker.docker/Data/s60: check if service is running
docker ps failed
[OK] menubar
[OK] disk
@akimd Nevermind. That was just a reset on BIOS that disabled the virtualization. Sorry about that. @kohend I hope your fix is easy like changing that.
I had the same issue with a very similar log. It was resolved by downloading the Edge Version: 18.02.0-ce-rc1-mac50 (22256)
@marcelocollyer Ouch, that's interesting! We should definitely be able to catch this situation and diagnose nicely. However you have not uploaded your more recent logs, they could be helpful.
How did you disable/enable virtualisation?
It was like that after I upgraded to this version, a factory reset made it work but it's not practical to factory reset after each update.
It's my latest log after re-enabled virtualisation. It always worked properly on my mbpro. The problem I had described has happened on my hackintosh. For some reason I disabled the virtualisation and I forgot about that :)
Docker for Mac: version: 18.02.0-ce-rc1-mac50 (e1912a8c46ae6f60a85d277f7b8d210dc9670b28)
macOS: version 10.12.1 (build: 16B2657)
logs: /tmp/3DFF0025-EC0D-45BA-9255-848CA0D1A305/20180205-064007.tar.gz
[OK] db.git
[OK] vmnetd
[OK] dns
[OK] driver.amd64-linux
[OK] virtualization VT-X
[OK] app
[OK] moby
[OK] system
[OK] moby-syslog
[OK] kubernetes
[OK] env
[OK] virtualization kern.hv_support
[OK] slirp
[OK] osxfs
[OK] moby-console
[OK] logs
[OK] docker-cli
[OK] menubar
[OK] disk
@marcelocollyer This is embarrassing, the step "virtualization VT-X" should precisely check that virtualization is enabled, and afaict, all your logs happily report [OK] on this regard.
If you could run sysctl -a and provide us with the result, with and without virtualization, we might be able to fix our diagnostics tool. But I would understand you're not keen on multiplying the reboots :)
Possibly related? https://github.com/docker/for-mac/issues/2428 (switching to Edge might fix the issue).
No news from @marcelocollyer about the sysctl -a, closing.
@geerlingguy No, I don't think it's related, unless you too are running a Hackintosh with virtualization disabled.
Ok So,
To everyone with Hackintosh Related,
Juste enable virtualization in bios.
First step : check if you cpu support virtualisation
Next : Run in console sysctl -a | grep machdep.cpu.feature
If you see VMX it says that virtualization is available BUT not obviously activated
If you don't want to restart and check the bios as per now, just download VirtualBox and check if you see an error like VT-X is disabled in the bios.
Last Step : just enable it in your bios config.
Now Works like a charm
Hope it will help some guys
@olivier1208 Thanks for this! However, I would really like someone who did not activate virtualization tell me whether "Diagnose and Feedback" complains about it. It should, if it does not, I would like to understand why and fix this.
So is my issue unrelated? I didn't have anything changed in the BIOS, I'm using a MacBook and not a hackintosh.
@kohend no, your issue is probably not related. Please, try the most recent version of Docker (https://download.docker.com/mac/edge/Docker.dmg), and create a new issue.
@olivier1208 Please, what do you mean by
Next : Run in console sysctl -a | grep machdep.cpu.feature If you see VMX it says that virtualization is available BUT not obviously activated
Do you know a means to check that virtualisation is enabled, if you think that checking for VMX in sysctl -a | grep machdep.cpu.feature is not enough?
@akimd Yeah it means the CPU supports it, but it doesn't mean it is enabled. For context, most hackintosh guides suggest turning off VT-X in the BIOS (not sure why)
I understood that since then, thanks :) Now docker-diagnose does the real check: launch hypervisor.framework and make sure it works.
I'm also getting this error when I tried to install it on my hackintosh (El Capitan 10.11.6). Haven't tried turning on VT-X yet. This is wat it says in the logs:
06-06-18 22:57:59,269 Docker[754]: vmx_init: processor not supported by Hypervisor.framework
06-06-18 22:57:59,269 Docker[754]: Unable to create VM (-85377018)
06-06-18 22:57:59,270 Docker[754]: Hypervisor subprocess has shutdown
06-06-18 22:57:59,272 Docker[751]: cannot read stdout from com.docker.driver.amd64-linux: EOF
06-06-18 22:57:59,272 Docker[751]: cannot read stderr from com.docker.driver.amd64-linux: EOF
06-06-18 22:57:59,272 Docker[751]: Reap com.docker.driver.amd64-linux (pid: 754): <nil>
06-06-18 22:57:59,273 Docker[751]: Stop 1 children with order 1: [com.docker.driver.amd64-linux (pid: 754)]
06-06-18 22:57:59,273 Docker[751]: Supervisor caught an error
06-06-18 22:57:59,273 Docker[751]: StopAll
06-06-18 22:57:59,273 Docker[751]: Stop 2 children with order 2: [com.docker.osxfs (pid: 752) com.docker.vpnkit (pid: 753)]
06-06-18 22:57:59,273 Docker[751]: Send signal terminated to com.docker.osxfs (pid: 752)
06-06-18 22:57:59,273 Docker[751]: Send signal terminated to com.docker.vpnkit (pid: 753)
06-06-18 22:57:59,274 Docker[751]: cannot read stdout from com.docker.osxfs: EOF
06-06-18 22:57:59,274 Docker[751]: cannot read stderr from com.docker.osxfs: EOF
06-06-18 22:57:59,274 Docker[751]: Reap com.docker.osxfs (pid: 752): signal: terminated
06-06-18 22:57:59,276 Docker[751]: cannot read stdout from com.docker.vpnkit: EOF
06-06-18 22:57:59,276 Docker[751]: cannot read stderr from com.docker.vpnkit: EOF
06-06-18 22:57:59,276 Docker[751]: Reap com.docker.vpnkit (pid: 753): signal: terminated
06-06-18 22:57:59,375 Docker[751]: Supervisor has failed, shutting down
Also when I click on Diagnose & Feedback the app will crash and it will say this in the logs:
06-06-18 23:04:52,279 Docker[730]: objc[730]: Cannot form weak reference to instance (0x7f817a7416a0) of class Docker.TextView. It is possible that this object was over-released, or is in the process of deallocation.
Running on hackintosh with intel Core i5-4670K 3.4Ghz (no problems installing it on my macbook pro)