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 cannot initiate properly #119

Closed
29x10 opened this issue Aug 4, 2016 · 17 comments
Closed

Docker for Mac cannot initiate properly #119

29x10 opened this issue Aug 4, 2016 · 17 comments

Comments

@29x10
Copy link

29x10 commented Aug 4, 2016

Expected behavior

it should be in running status

Actual behavior

Always in starting status, quit and reopen not working

Information

Diagnostic ID: D0A28EE4-7886-49BA-8BAC-CA6BA2ABCA07
Docker for Mac: 1.12.0-beta21 (Build 11019)
macOS: Version 10.11.6 (Build 15G31)
[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

after upgrade to this version

@mchiang0610
Copy link

#574 may be related...

Information

Diagnostic ID: DCE04336-8053-4026-87FD-CBFB6D23258E
Docker for Mac: 1.12.0-a (Build 11213)
macOS: Version 10.11.6 (Build 15G1004)
[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
[ERROR] moby
/Users/zardoz/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/console-ring does not exist
[ERROR] driver.amd64-linux
Docker.app/Contents/MacOS/com.docker.driver.amd64-linux -db is not running

@mchiang0610
Copy link

#551 may be related -- with disk check failure as well.

Diagnostic ID: 7DB0C3CB-5505-425C-9AC6-D67C93E29D78
Docker for Mac: 1.12.0-a (Build 11213)
macOS: Version 10.11.6 (Build 15G1004)
[ERROR] docker-cli
docker ps failed
[OK] app
[OK] moby-syslog
[ERROR] disk
disk check failed with: Failure("exec: /Applications/Docker.app/Contents/Resources/bin/../../../Contents/MacOS/qemu-img check /Users/debersom/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 > /tmp/7DB0C3CB-5505-425C-9AC6-D67C93E29D78/20160908-105639/qemu-img-check.stdout 2> /tmp/7DB0C3CB-5505-425C-9AC6-D67C93E29D78/20160908-105639/qemu-img-check.stderr: exit 2")
[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

@mchiang0610
Copy link

From #564

Diagnostic ID: E3285C35-A6EC-4EBA-B9B3-6CD6D8803BF7
Docker for Mac: 1.12.0-a (Build 11213)
macOS: Version 10.11.1 (Build 15B42)
[ERROR] docker-cli
docker ps failed
[OK] app
[OK] moby-syslog
[ERROR] disk
disk check failed with: Failure("exec: /Applications/Docker.app/Contents/Resources/bin/../../../Contents/MacOS/qemu-img check /Users/willcheng/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 > /tmp/E3285C35-A6EC-4EBA-B9B3-6CD6D8803BF7/20160909-144611/qemu-img-check.stdout 2> /tmp/E3285C35-A6EC-4EBA-B9B3-6CD6D8803BF7/20160909-144611/qemu-img-check.stderr: exit 2")
[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

@aripalo
Copy link

aripalo commented Sep 13, 2016

This has been already mentioned several times in other issues (closed in favour of this issue), but for anyone ending here and not knowing what to do:

A temporary “solution” (until an actual fix comes along) is to run sudo pkill docker and then restart the Docker for Mac app.

@homofortis
Copy link

Make sure you have Intel Virtualization enabled in your BIOS. In my case, docker started after enabling it.

@29x10
Copy link
Author

29x10 commented Sep 20, 2016

after I click the reset to factory defaults, it works fine.

@bschalme
Copy link

bschalme commented Oct 4, 2016

Neither sudo pkill docker nor clicking reset to factory defaults worked for me. After trying both, Docker 1.12.2-rc1-beta27 still remains in starting mode on my MacBook Pro, it never finishes starting.

@samoht
Copy link
Contributor

samoht commented Oct 12, 2016

The cause of the initial issue is AUFS corruption:

time="2016-08-03T01:18:28.774255852Z" level=debug msg="Using default logging driver json-file"
time="2016-08-03T01:18:28.774729056Z" level=debug msg="Golang's threads limit set to 13950"
time="2016-08-03T01:18:28.775118420Z" level=debug msg="[graphdriver] trying provided driver \"aufs\""
time="2016-08-03T01:18:28.780220435Z" level=debug msg="Using graph driver aufs"
time="2016-08-03T01:18:28.783331024Z" level=debug msg="Cleaning up old mountid : start."
time="2016-08-03T01:18:28.783662757Z" level=fatal msg="Error starting daemon: mkdir /var/lib/docker/image: structure needs cleaning"
time="2016-08-04T01:50:11Z" level=warning msg="Running experimental build"
time="2016-08-04T01:50:11.871847300Z" level=debug msg="docker group found. gid: 50"
time="2016-08-04T01:50:11.873715194Z" level=debug msg="Listener created for HTTP on unix (/var/run/docker.sock)"
time="2016-08-04T01:50:11.875302274Z" level=info msg="libcontainerd: new containerd process, pid: 1349"
time="2016-08-04T01:50:11.876495966Z" level=debug msg="libcontainerd: containerd connection state change: TRANSIENT_FAILURE"

Closing the issue as this should now be safer in more recent betas.

@samoht samoht closed this as completed Oct 12, 2016
@samoht
Copy link
Contributor

samoht commented Oct 12, 2016

Also I went through all the referenced issues and tried to triage them a bit more precisely. Lots of moby/hyperkit#50, lots of partial installations, lots of AUFS corruption issues and few osx invariant breakage. Some of these will be fixed in Beta 28, and we are working in fixing the other ones.

@bastien
Copy link

bastien commented Nov 28, 2016

I had the same problem, running Docker for Mac 1.12.3 (13776)
My mac quit unexpectedly and after the reboot docker ps no longer worked. sudo pkill docker didn't solve the problem, I had to reset to factory settings and fetch all my images again.

@micron
Copy link

micron commented Feb 17, 2017

Same here on El Capitan (10.11.6) with Docker for Mac 1.13.1 (15353). Reseting to factory defaults resolves this temporary.

@florrain
Copy link

florrain commented Apr 4, 2017

I ran a SQL import overnight to a mySQL container in docker-machine (latest docker for mac Version 17.03.1-ce-mac5 (16048)) and when I wake up and check the status of the import, it's stuck halfway through. docker is unresponsive, containers don't respond and trying to restart via the GUI never finishes.

I first tried native docker and couldn't get the import working and thought it was because of the qcow max size of 65gb and now I'm seeing this issue. I'm starting to wonder if it's the same after all.

Basically a huge SQL import or long process working in the background while the laptop is idle make docker freeze. And that's a huge pain in the ass for me, probably for somebody else out there. Is there a bug filed for this or a known workaround?

I'm on macOS Sierra 10.12.4 + MBP 2016.

Neither sudo pkill docker nor clicking reset to factory defaults worked for me. After trying both, Docker 1.12.2-rc1-beta27 still remains in starting mode on my MacBook Pro, it never finishes starting.

Same here for me.

@marnen
Copy link

marnen commented Jan 31, 2018

@samoht Looks like there have been at least 4 reports of this persisting since you closed the issue. Should this be reopened?

@akimd
Copy link
Contributor

akimd commented Jan 31, 2018

Hi guys,

No, let's not reopen this old issue. The code based has completely changed and we will mix different type of logs. But I do sincerely appreciate that you guys do try to help us triaging!

@marnen
Copy link

marnen commented Jan 31, 2018

@akimd Then I'm sorry if I spoke too soon. From a user's perspective, it sure looks like a similar issue, and I'll admit to getting a bit frustrated by seeing lots of reports and little resolution...

@akimd
Copy link
Contributor

akimd commented Feb 1, 2018

Nah, don't worry. But be sure there are tons of different reasons that lead to the same symptom: "it does not work" :)

@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