You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I install the docker at first, it runs smoothly. And later, I change the CPU resource from 6 core to 10 core, the docker desktop cannot run and it show the message The docker desktop is stopped.
I tried to re-install it and it doesn't work for me. The troubleshoot function is still not working and any operation has no effect.
The docker desktop is repeated from starting to stopped
Information
macOS Version: 12.0.1
Intel chip or Apple chip: Apple M1 Pro
Docker Desktop Version: 4.4.2
Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Steps to reproduce the behavior
Install Docker desktop.
Change the resource CPU from 6 core to 10 core.
Reacted by Martin Smith, Jonathan Immanuel Brachthäuser, G, Daniel Sandoval, Alexandr D., Johnson145, Tom GODDARD, Tristan Dubé-Lepage, Joshua Krosenbrink, Deniz Ozkaynak and 22 more
Reacted by Olivier Le Floch, Deniz Ozkaynak, Derek Berner and rom3r4
Reacted by Dossy Shiobara, kszafran and Alex Barker
Reacted by Mariia, Maxime Sauvageau, Max Chertov, Mike May, Daniel Sandoval, Alexandr D., Johnson145, Samuel Humeau, Tristan Dubé-Lepage, bluishoul and 16 more
Reacted by Nathan Huebner and rom3r4
Reacted by Samuel Humeau, bluishoul, mafshin, Jorge Marizan, Benji Pastel and Erik
Thanks a lot to @b-studios for the workaround, as I had to re-install and wipe Docker Engine twice (btw, simple re-install does not work, you gotta follow advices here + manual sudo su -> cd / && find . -name '*docker*' -or -name '*Docker*' 2>&1 >out and inspecting the files, drove me crazy) before I found this issue
I'n my vain attempts to improve I/O performance for my local environment, I played around with different configurations, and can confirm that changing CPU from 6 to 10 completely breaks Docker for Mac.
It is broken both in 4.3.2 (that my colleague has and experiences less problems) and the latest version as well.
Thanks, this fixed my issue, I switched to 10 cpu two days ago and been trying to fix it since, could not find the settings and re-installing wouldn't fix
Reacted by G, Tom GODDARD, Nathan Huebner, CR-EinavLeyboshor and Asher Rankin
By the way, switching to 6 (from the default 4) cores has dramatically worsened my performance. I believe it is related to the issue outlined here: docker/roadmap#142 (comment). I switched back to 1 CPU and my local setup (quite a hefty one) finally worked on par (and in some aspects better) than MBP 2019 with i5 :D
I'm having the same issue where the docker engine oscillates between "starting" and "stopped". I am however on an Intel Mac. Changing CPU from 10 to 6 didn't help. The crash loop seems to be triggered by me updating Docker Desktop to 4.4.2 (73305).
I have tried all of the suggestions on here, as well as other threads and still cannot get docker desktop to start up, forever stuck on docker engine is starting. Am on an M1 macbook. Have abandoned Docker Desktop as it just doesn't work, I've spent over 3 full work days trying to make it work and in the end installed colima as a workaround...
Can not start Docker on MacBook Pro 16 with M1 Max chip. "Whale menu" does not appear on top, but some process is running as I see through Activity Monitor. Changing settings in settings.json does not help. This happens right after installation. UI does not appear at all.
Reacted by Billy Taggart, peroxy, Tim, Artur, Karthikeyan Govindaraj, jean-wei-dh, Joachim Kuebart, lamorica-swain and qqjxzxq
This happened to me when I tried to disable gRPc FUSE (related #5240) and after trying every single tip on every issue relating to starting failures, the solution was to obliterate everything, restart, and cross my fingers.
This happened to me when I tried to disable gRPc FUSE (related #5240) and after trying every single tip on every issue relating to starting failures, the solution was to obliterate everything, restart, and cross my fingers.
rm -rf ~/Library/Caches/com.docker.docker
rm -rf ~/.docker
rm -rf ~/Library/Group Containers/group.com.docker
open --background -a Docker
Reacted by Andrei Sfat, Tim Büthe, NikolayKozlov, Naoya Muramatsu, Jun Sup Shin, afiram, David Baker, Eldan, Obba Paschal, Kyle and 23 more
Thanks @LeSauvage. I just encountered that issue on my M1 MBP (OS Ventura 13.0.1). Since the M1 has only 8 cores (4 high performance cores and 4 high efficiency cores) I reduced the value from 5 to 4 and Docker works again.
I also had a memory issue - the new M1 macs have less memory than my old machine, and I had allocated 20GB of memory to Docker. That was fine on my 32GB mac, but not on my 16 GB. Thanks for the tip to edit ~/Library/Group\ Containers/group.com.docker/settings.json
In my case I removed this folder ~/Library/Group Containers/group.com.docker/ and then reinstalled the latest version of docker (v 4.16.2). So in my case I enabled again VirtioFS and everything worked.
I tried everything here and none of it works for me but when I force quit those Docker processes, there was a fatal error shown. After some digging, only this solution worked for me. #6565 (comment)
I spent several hours trying to figure this out and finally did. In the end the solution wasn't blindly copying and pasting things from the internet, it was to dig into the logs myself:
Then start Docker Desktop and wait for the error message. In my case, the error was:
docker running vm running vm and dependencies: running vm running virtualization.framework com.docker.virtualization waiting for com.docker.virtualization vm exit status 1
So I waited to get that error, then I quit Docker Desktop so it wouldn't interfere. I then searched the logs for exit status 1. I found this:
2023-06-22 22:52:20.822244-0600 localhost com.docker.virtualization[5191]: (CoreFoundation) [com.apple.CFBundle:strings] Bundle: <private>, key: %@ %@, value: %@ %@, table: Error, l
ocalizationNames: (null), result: %1$@ %2$@
2023-06-22 22:52:20.822280-0600 localhost com.docker.virtualization[5191]: VM configuration is invalid: Invalid virtual machine configuration. “memorySize” is greater than “maximumAllowedMemorySize”.
2023-06-22 22:52:20.822440-0600 localhost com.docker.virtualization[5191]: validating configuration &{Configuration:{MemorySize:32212254720 CPUCount:12 BootLoader:{Kernel:/Applicati
ons/Docker.app/Contents/Resources/linuxkit/kernel CommandLine:page_poison=1 vsyscall=emulate panic=1 nospec_store_bypass_disable noibrs noibpb no_stf_barrier mitigations=off linuxkit
.unified_cgroup_hierarchy=1 console=hvc0 irqaffinity=0 vpnkit.connect=connect://2/1999 vpnkit.disable=osxfs-data com.docker.VMID=42a6e2a8-3796-4d90-ad34-f040373bc042 Ramdisk:/Applic
ations/Docker.app/Contents/Resources/linuxkit/initrd.img} Rosetta:{Tag:} SerialPort:{Input:0x14000330010 Output:0x14000330028} EntropyDevice:{} NetworkDevice:0x1400012a540 StorageDev
ice:0x14000141000 SocketDevice:{} DirectorySharingDevices:[] MemoryBalloonDevice:{} VsockDevice:0x103d871f8 ID:42a6e2a8-3796-4d90-ad34-f040373bc042} Logger:0x1400013c300 MemoryMiB:30
720 VPNKitBridgeVSockPort:1999 DiagnosticsVSockPort:62374 RequestedMAC: MACAddrFilename:vms/0/macaddr VPNKitEthernet: ConsoleLog:log/vm/console.log ConsoleSocket:vms/<decode: missing
data>
2023-06-22 22:52:20.822450-0600 localhost com.docker.virtualization[5191]: [...] 0/console.sock DiagnosticdDirect:diagnosticd.direct.sock VPNKitBridgeFDPassing:vpnkit-bridge-fd.sock
VirtiofsShares:[] WatchdogEnabled:true UseRosetta:false InstallRosetta:false ReportCrashes:true BalloonListener:0x14000328000}: Invalid virtual machine configuration. “memorySize” i
s greater than “maximumAllowedMemorySize”.
2023-06-22 22:52:20.823183-0600 localhost com.docker.backend[5152]: received error from the com.docker.virtualization process
2023-06-22 22:52:20.823248-0600 localhost com.docker.backend[5152]: VM failed: running VM and dependencies: running VM: running virtualization.framework: com.docker.virtualization:
waiting for com.docker.virtualization VM: exit status 1
2023-06-22 22:52:20.823552-0600 localhost com.docker.backend[5152]: switched to docker cli context default
2023-06-22 22:52:20.823572-0600 localhost com.docker.backend[5152]: running unix engine: running VM: running VM and dependencies: running VM: running virtualization.framework: com.d
ocker.virtualization: waiting for com.docker.virtualization VM: exit status 1
It actually said it a bit further up in the logs as well.
2023-06-22 22:52:20.821315-0600 localhost com.docker.virtualization[5191]: Error Domain=VZErrorDomain Code=2 "“memorySize” is greater than “maximumAllowedMemorySize”." UserInfo={NSL
ocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=“memorySize” is greater than “maximumAllowedMemorySize”.}
I then edited the ~/Library/Group\ Containers/group.com.docker/settings.json like others have mentioned, but modified the memoryMiB setting (why isn't this named what the logs say?), and then saved.
sudo vim ~/Library/Group\ Containers/group.com.docker/settings.json
Finally I restarted Docker and it worked!
If your error messages are weird I would highly recommend just searching for VM configuration is invalid or Invalid virtual machine configuration which will tell you right away if it's the settings file (I think).
backstory:
I actually migrated to this laptop from a much larger intel mac. the m2s are so good you don't need half the memory or cpus for the same tasks and as a result a lot of the apps were intel based. I think that's what caused all of this pain and suffering.
Activity
b-studios commentedon Jan 22, 2022
Can confirm, this exact thing happened to me. Even uninstalling and purging all configs doesn't seem to help.
b-studios commentedon Jan 22, 2022
As a workaround, I figured out that the configs are stored here:
Switching back to 6 CPUS via key:
resolved the issue for me temporarily
MSLP commentedon Jan 22, 2022
Thanks a lot to @b-studios for the workaround, as I had to re-install and wipe Docker Engine twice (btw, simple re-install does not work, you gotta follow advices here + manual
sudo su->cd / && find . -name '*docker*' -or -name '*Docker*' 2>&1 >outand inspecting the files, drove me crazy) before I found this issueI'n my vain attempts to improve I/O performance for my local environment, I played around with different configurations, and can confirm that changing CPU from 6 to 10 completely breaks Docker for Mac.
It is broken both in 4.3.2 (that my colleague has and experiences less problems) and the latest version as well.
I have MBP 2021 M1 Pro if it matters.
LeSauvage commentedon Jan 23, 2022
Thanks, this fixed my issue, I switched to 10 cpu two days ago and been trying to fix it since, could not find the settings and re-installing wouldn't fix
MSLP commentedon Jan 24, 2022
By the way, switching to 6 (from the default 4) cores has dramatically worsened my performance. I believe it is related to the issue outlined here: docker/roadmap#142 (comment). I switched back to 1 CPU and my local setup (quite a hefty one) finally worked on par (and in some aspects better) than MBP 2019 with i5 :D
Gau-thier commentedon Jan 25, 2022
Thanks! Got the same trouble yesterday, didn't know it was related to the new resources config I set.
Worked for me:
settings.jsonto"cpus":8Hope this will be fixed soon!
ramblingenzyme commentedon Jan 28, 2022
Had this same issue, I set my cpus to 9, out of 10. Changing it to 6 fixed the loop. Why would this be happening though, very confused.
jleren commentedon Jan 31, 2022
I have the same issue, changing CPU's started a reboot loop for Docker Desktop
BasilPH commentedon Jan 31, 2022
I'm having the same issue where the docker engine oscillates between "starting" and "stopped". I am however on an Intel Mac. Changing CPU from 10 to 6 didn't help. The crash loop seems to be triggered by me updating Docker Desktop to 4.4.2 (73305).
Update: Rebooting my Mac fixed the issue.
Cyclic commentedon Feb 2, 2022
8 is great.
B-0-B-B-Y commentedon Mar 16, 2022
I have tried all of the suggestions on here, as well as other threads and still cannot get docker desktop to start up, forever stuck on docker engine is starting. Am on an M1 macbook. Have abandoned Docker Desktop as it just doesn't work, I've spent over 3 full work days trying to make it work and in the end installed colima as a workaround...
lwinch2006 commentedon Mar 20, 2022
Can not start Docker on MacBook Pro 16 with M1 Max chip. "Whale menu" does not appear on top, but some process is running as I see through Activity Monitor. Changing settings in settings.json does not help. This happens right after installation. UI does not appear at all.
philsturgeon commentedon Mar 23, 2022
This happened to me when I tried to disable gRPc FUSE (related #5240) and after trying every single tip on every issue relating to starting failures, the solution was to obliterate everything, restart, and cross my fingers.
philsturgeon commentedon Mar 23, 2022
This happened to me when I tried to disable gRPc FUSE (related #5240) and after trying every single tip on every issue relating to starting failures, the solution was to obliterate everything, restart, and cross my fingers.
18 remaining items
robert-wloch-iits commentedon Nov 28, 2022
Thanks @LeSauvage. I just encountered that issue on my M1 MBP (OS Ventura 13.0.1). Since the M1 has only 8 cores (4 high performance cores and 4 high efficiency cores) I reduced the value from 5 to 4 and Docker works again.
dth138 commentedon Jan 5, 2023
I also had a memory issue - the new M1 macs have less memory than my old machine, and I had allocated 20GB of memory to Docker. That was fine on my 32GB mac, but not on my 16 GB. Thanks for the tip to edit
~/Library/Group\ Containers/group.com.docker/settings.jsonnicola-pugliese commentedon Jan 24, 2023
In my case I removed this folder
~/Library/Group Containers/group.com.docker/and then reinstalled the latest version of docker (v 4.16.2). So in my case I enabled again VirtioFS and everything worked.MacBook Pro M1 - Mac OS 13.2 (22D49)
michael-koeller commentedon Feb 8, 2023
I had the same problem on M2 MBP. I finally got Docker running by downgrading to v4.5.0, then upgrading from within the Docker UI.
drewlustro commentedon Feb 10, 2023
:\
bauerjon commentedon Mar 14, 2023
I also found that a previous build worked for me https://docs.docker.com/desktop/release-notes/ specifically 4.14
rom3r4 commentedon Apr 10, 2023
In my case Docker Desktop started getting stuck after an upgrade from 10.17.0 to 10.18.0. I am running MacOS Ventura on Apple M1.
After many tries of the workarounds above, what only I worked was downgrading to 10.17.0. The downloading site is https://docs.docker.com/desktop/release-notes/
olivierodo commentedon Apr 10, 2023
Thank you @rom3r4, I just tried and it worked 🚀🚀🚀.
ecyzhi commentedon Apr 20, 2023
I tried everything here and none of it works for me but when I force quit those Docker processes, there was a fatal error shown. After some digging, only this solution worked for me.
#6565 (comment)
snowe2010 commentedon Jun 23, 2023
I spent several hours trying to figure this out and finally did. In the end the solution wasn't blindly copying and pasting things from the internet, it was to dig into the logs myself:
Per the Docker Docs:
Then start Docker Desktop and wait for the error message. In my case, the error was:
So I waited to get that error, then I quit Docker Desktop so it wouldn't interfere. I then searched the logs for
exit status 1. I found this:It actually said it a bit further up in the logs as well.
I then edited the
~/Library/Group\ Containers/group.com.docker/settings.jsonlike others have mentioned, but modified thememoryMiBsetting (why isn't this named what the logs say?), and then saved.Finally I restarted Docker and it worked!
If your error messages are weird I would highly recommend just searching for
VM configuration is invalidorInvalid virtual machine configurationwhich will tell you right away if it's the settings file (I think).backstory:
I actually migrated to this laptop from a much larger intel mac. the m2s are so good you don't need half the memory or cpus for the same tasks and as a result a lot of the apps were intel based. I think that's what caused all of this pain and suffering.
QinisoM commentedon Aug 11, 2023
Thanks @sliucw
The above worked for me on my M1 Max.
submato commentedon Oct 2, 2023
why this bug still exist nowadays
rictt commentedon Nov 20, 2023
Version 4.51 still has this problem, and i renew the version to 4.5.0, the problem resolved
nstankov-bg commentedon Jan 7, 2025
Erm, I just experienced this in 2025? Not sure if I am annoyed or amused.
The solution was to downgrade docker desktop on an M2.
masterial commentedon Mar 15, 2025
This is an issue for M3. The frontend doesn't work regardless if one installs from the website or homebrew.
Docker version 28.0.1, build 068a01e