Docker Desktop for macOS cannot be started due to update to v4.43.2
Description
Docker Desktop for macOS cannot be started due to update to v4.43.2. Here is error report by Docker Desktop:
running engine: waiting for the Docker API: service disk failed:
mounting read write disk: invalid argument
The system requires me to reset to factory defaults, but it will cause data loss. My data is very important so that I have to stop to keep my Docker Desktop running until the issue solved. Thanks!
Reproduce
- Update Docker Desktop for macOS Silicon to v4.43.2 on Mac mini 2024 (M4).
- Error:
running engine: waiting for the Docker API: service disk failed: mounting read write disk: invalid argument
Expected behavior
The Docker Desktop for macOS successfully started.
docker version
Client:
Version: 28.3.2
API version: 1.51
Go version: go1.24.5
Git commit: 578ccf6
Built: Wed Jul 9 16:12:57 2025
OS/Arch: darwin/arm64
Context: desktop-linux
Cannot connect to the Docker daemon at unix:///Users/xiaoheicat/.docker/run/docker.sock. Is the docker daemon running?
docker info
Client:
Version: 28.3.2
Context: desktop-linux
Debug Mode: false
Plugins:
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.8.0
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.25.0-desktop.1
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-buildx
cloud: Docker Cloud (Docker Inc.)
Version: v0.4.2
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-cloud
compose: Docker Compose (Docker Inc.)
Version: v2.38.2-desktop.1
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.41
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.1.11
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-desktop
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.29
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-init
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.9.9
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-mcp
model: Docker Model Runner (EXPERIMENTAL) (Docker Inc.)
Version: v0.1.33
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-model
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.18.1
Path: /Users/xiaoheicat/.docker/cli-plugins/docker-scout
WARNING: Plugin "/Users/xiaoheicat/.docker/cli-plugins/docker-dev" is not valid: failed to fetch metadata: fork/exec /Users/xiaoheicat/.docker/cli-plugins/docker-dev: no such file or directory
WARNING: Plugin "/Users/xiaoheicat/.docker/cli-plugins/docker-feedback" is not valid: failed to fetch metadata: fork/exec /Users/xiaoheicat/.docker/cli-plugins/docker-feedback: no such file or directory
Server:
Cannot connect to the Docker daemon at unix:///Users/xiaoheicat/.docker/run/docker.sock. Is the docker daemon running?
Diagnostics ID
<Due to Backend API Error, the diagnostics could not be generated successfully>
Additional Info
System: macOS 15.3.2 Model: Apple Mac mini 2024 (M4) CPU: Apple M4 Memory: 24 GB
If any other infomation should I provide, please comment. Thanks!
Thanks for the report.
<Due to Backend API Error, the diagnostics could not be generated successfully>
Could you shut down Docker Desktop and then upload diagnostics using the CLI? Try:
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose gather -upload
Please include the diagnostics ID here and I'll take a look. Thanks in advance!
I have exactly the same issue. Here's my diagnostics ID: 8F375CD8-658D-4F4C-A65F-C06C577617D1/20250724150805
Gathering diagnostics never finishes on my MBP M2 running macOS Sequoia 15.5 🫤
I ran into this as well.
diagnostics id: DCA9F7A7-BB30-4E23-863F-733D3F5C53B2/20250724142724
Client:
Version: 28.3.2
API version: 1.51
Go version: go1.24.5
Git commit: 578ccf6
Built: Wed Jul 9 16:12:57 2025
OS/Arch: darwin/arm64
Context: desktop-linux
Btw. I managed to make Docker work again by removing the /Users/YourUsername/Library/Containers/com.docker.docker folder.
Thanks for the diagnostics. There's a bug in the current version of Docker VMM which causes the Docker Desktop disk file to shrink (but without losing data).
One workaround (* -- which will lose data -- *) is to reset to factory settings, which will delete containers and images and switch back to Apple VMM.
To recover without losing data, try the following: (I've not got a local repro so I can't test it, however if you back up the file (step 2) then nothing should be lost)
- Stop Docker Desktop
- Back up the file
~/Library/Containers/com.docker.docker/Data/Docker.raw(this is the file which contains the images and containers) - Install a development version of DD with the bug fix:
- Edit
~/Library/Group\ Containers/group.com.docker/settings-store.jsonand change theDiskSizeMiBkey to a larger value than it currently has, for example on my machine I rounded my disk size up:
"DiskSizeMiB": 500000,
- Restart Docker Desktop
Since the bug is caused by the file size being truncated by a couple of blocks (where the blocks on the end are empty), confusing the VM because the disk looks smaller, making the size bigger again should make e2fsck happy.
Please let me know how you get on.
Btw, I found that the problem can be solved by downgrade Docker Desktop to 4.38.0. Whatever the Docker VMM and Apple VMM can work properly without losing data. If you are busy to solve this issue, try to downgrade it.
Sorry again that I have no space left to back up my data. I will try when I found a way to back my Docker.raw up.
I can confirm the factory reset did work for me
Similar case: https://github.com/docker/for-mac/issues/7378
I was also facing the same issue in MacOS and this command
tccutil reset SystemPolicyAllFiles
fixed for my case.
WARNING: This will reset your Full Disk Access permissions for all apps on macOS. Do a research before you apply.
@djs55 The steps to recover without losing data didn't work for me, sadly. Downgrading to 4.41.0 and removing backend.lock got me up and running again without any data loss though
@djs55 Increasing and decreasing DiskSizeMiB fixed it for me without touching anything else.
I was also seeing this error after upgrading to v4.45.0. Switching from the default VMM setting to "Apple Virtualization framework" fixed things for me. After restarting, I was able to switch back to Docker VMM. Hope it helps.
Thanks for the diagnostics. There's a bug in the current version of Docker VMM which causes the Docker Desktop disk file to shrink (but without losing data).
One workaround (* -- which will lose data -- *) is to reset to factory settings, which will delete containers and images and switch back to Apple VMM.
To recover without losing data, try the following: (I've not got a local repro so I can't test it, however if you back up the file (step 2) then nothing should be lost)
1. Stop Docker Desktop 2. Back up the file `~/Library/Containers/com.docker.docker/Data/Docker.raw` (this is the file which contains the images and containers) 3. Install a development version of DD with the bug fix: * [Apple Silicon](https://desktop-stage.docker.com/mac/main/arm64/200207/Docker.dmg) * [Intel](https://desktop-stage.docker.com/mac/main/amd64/200207/Docker.dmg) 3. Edit `~/Library/Group\ Containers/group.com.docker/settings-store.json` and change the `DiskSizeMiB` key to a larger value than it currently has, for example on my machine I rounded my disk size up:"DiskSizeMiB": 500000,4. Restart Docker DesktopSince the bug is caused by the file size being truncated by a couple of blocks (where the blocks on the end are empty), confusing the VM because the disk looks smaller, making the size bigger again should make
e2fsckhappy.Please let me know how you get on.
This almost worked for me... But in my case I just deleted ~/Library/Containers/com.docker.docker/ folder. Without fear, since I didn't have any data I wanted to keep. Of course, I don't recommend it to just anyone.
Library/Containers/com.docker.docker
Thank You! GG
Confirming this bug persists in v4.58.1 (not just v4.43.2)
Environment:
- Docker Desktop: v4.58.1 (217134)
- macOS: Sequoia
- Hardware: MacBook Pro M1 Pro, 16GB RAM
Error:
service disk failed: mounting read write disk: invalid argument
Diagnostics ID: 0E9A86C4-5C41-46CF-9FB1-14D44F4F6715/20260201001259
What didn't work:
tccutil reset SystemPolicyAllFiles(TCC reset) - did not resolve the issue
What worked:
- Downgrade to v4.41.2 (build 191736) - Docker starts successfully
So seems like the VMM disk truncation bug is still present in the latest release.