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

Docker for Mac Failing to Start #175

Closed
djbingham opened this issue Aug 8, 2016 · 11 comments
Closed

Docker for Mac Failing to Start #175

djbingham opened this issue Aug 8, 2016 · 11 comments

Comments

@djbingham
Copy link

djbingham commented Aug 8, 2016

Expected behavior

On launch, Docker 1.12 for Mac is failing to start, with the status showing as "Docker starting..."

Actual behavior

Docker for Mac should start and the status should show "Running".

Information

Diagnostic ID: 73D8E9C0-4390-4395-A2AA-D315819B2EC8
Docker for Mac: 1.12.0 (Build 10871)
macOS: Version 10.11.5 (Build 15F34)
[ERROR] docker-cli
docker ps failed
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Steps to reproduce

I don't have reliable steps to reproduce as I have no idea what (if anything) I did that caused this. I was working fine with Docker for Mac, but suddenly all docker commands stopped working. I don't recall seeing any error messages, just commands such as docker ps did nothing. I think I cancelled a script that was executing various docker build/run commands shortly before docker stopped responding.

I then tried to restart Docker for Mac, which got stuck in the "Docker starting..." state. In an attempt to remove any potential conflicts, I have since followed the steps in https://github.com/docker/toolbox/blob/master/osx/uninstall.sh to remove my old Docker Toolbox installation, then restarted my Mac and I still have Docker for Mac stuck on "Docker starting..."

I'm happy to help out with any further tests on my system, but would prefer to avoid reinstalling Docker for Mac as it will take the best part of a day to re-download all of my images and longer to rebuild local containers.

UPDATE: I've just been reminded what the error message was that I saw before trying to restart Docker for Mac:

Error response from daemon: Bad response from Docker engine.

I'm now getting the same error when I try running docker ps with Docker stuck in the "Docker starting..." state.

Also, probably worth mentioning that every time I restart Docker for Mac now, a system notification appears informing that it has just updated to version 1.12.

@djbingham
Copy link
Author

I got impatient and reset to factory defaults. Docker seems to be working fine now, just going through all my projects downloading required images and building containers.

I do think this issue needs investigating even though a reset fixes it. Clearly something went wrong with Docker that caused it to get into a completely broken state, so without the cause being identified I wouldn't like to see this ticket closed.

@cmPrasanna
Copy link

+1: We are also facing the same issue, I am not sure what causes this. This definitely needs immediate attention.

@tony-garcia
Copy link

+1 ran into this today with Docker 1.12.1-rc1-beta23

@fjoesne
Copy link

fjoesne commented Aug 25, 2016

+1 stuck on this. Version 1.12.0-a (build: 11213) tried factory reset.. no success

@levans002
Copy link

levans002 commented Aug 26, 2016

Resetting to factory defaults worked for me. +1 for a real fix

@cmPrasanna
Copy link

Moving to docker toolbox out of frustration. VirtualBox has been stable for me. Docker team please stop this movement out of this real nice option for mac users.

@codyseibert
Copy link

codyseibert commented Sep 6, 2016

+1 Version 1.12.0-a (build: 11213) - factory defaults fixed the issue

@mchiang0610
Copy link

Merging with #119

@samoht
Copy link
Contributor

samoht commented Oct 12, 2016

Detected symptom of problem 'invariant-violated' in 73D8E9C0-4390-4395-A2AA-D315819B2EC8/20160808-154931.

An invariant within the code of one of the components was not held. Docker needs to be restarted.

May be related to #89

The following log matches:

Aug  1 09:17:08 David-Hs-MacBook-Pro-2 Docker[com.docker.driver.amd64-linux][6682] <Notice>: VM: 2016-08-01 08:17:08 +0000 UTC kern.info kernel: docker0: port 7(veth39abd87) entered forwarding state
Aug  1 09:18:05 David-Hs-MacBook-Pro-2 Docker[com.docker.osxfs][6679] <Notice>: Volume.stop c5c04763e6aa3c6f48358faef36a836822cfedfee22ed82377dcb14b5f0b0f01 (paths = [/Users/david/sites/ft/version-service, /Users/david/sites/ft/version-service/linux_node_modules, /Users/david/.npm/])
Aug  1 09:18:05 David-Hs-MacBook-Pro-2 Docker[com.docker.osxfs][6679] <Error>: WATCH SUBSCRIBER REMOVAL INVARIANT VIOLATED
Aug  1 09:18:05 David-Hs-MacBook-Pro-2 Docker[com.docker.driver.amd64-linux][6682] <Notice>: VM: 2016-08-01 08:18:05 +0000 UTC daemon.info vsudd: 1284 Done. read: 265 written: 3847
Aug  1 09:18:05 David-Hs-MacBook-Pro-2 Docker[com.docker.driver.amd64-linux][6682] <Notice>: VM: 2016-08-01 08:18:05 +0000 UTC daemon.info vsudd: Connection 1286 to: 2376 from: 00000000
Aug  1 09:18:05 David-Hs-MacBook-Pro-2 Docker[com.docker.driver.amd64-linux][6682] <Notice>: VM: 2016-08-01 08:18:05 +0000 UTC kern.info kernel: vethc566098: renamed from eth0

@dsheets
Copy link
Contributor

dsheets commented Oct 31, 2016

The invariant violation issue is not the root cause of this report. This particular invariant violation issue was fixed in Beta 23/Stable 1.12.1.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests