cajias/claude-skills/docker-desktop-stuck-state
Claude Code and agent skill by cajias/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Fix Docker Desktop stuck in partial running state on macOS. Use when: (1) `docker ps` fails with "dial unix ... docker.sock: connect: no such file or directory", (2) `docker desktop status` says "Could not retrieve status. Is Docker Desktop running?", (3) `docker desktop start` says "Docker Desktop is already running" but engine won't start, (4) AppleScript quit or osascript commands timeout with error -1712, (5) Docker backend process is running but socket doesn't exist at ~/.docker/run/docker.sock. Covers macOS Docker Desktop recovery when normal restart methods fail.
Install
npx vskill@latest install cajias/claude-skills/docker-desktop-stuck-stateSKILL.md
The same SKILL.md was published earlier as cajias/claude-skills/docker-desktop-stuck-state.
Docker Desktop Stuck State Recovery
Problem
Docker Desktop on macOS can enter a stuck state where the backend process is running but the Docker engine/VM hasn't started. Normal restart methods (quit app, docker desktop stop, AppleScript) all hang or timeout, leaving Docker unusable.
Context / Trigger Conditions
Any of these symptoms indicate this stuck state:
- Socket missing:
docker psordocker infofails with:
``text failed to connect to the docker API at unix:///Users/<user>/.docker/run/docker.sock dial unix /Users/<user>/.docker/run/docker.sock: connect: no such file or directory ``
- Status contradiction:
docker desktop status→ "Could not retrieve status. Is Docker Desktop running?"docker desktop start→ "Docker Desktop is already running"
- Restart methods hang:
osascript -e 'quit app "Docker"'→ timeout error -1712open -a Docker→ error -1712 (LSOpenURLsWithCompletionHandler failed)- Docker menu bar quit option unresponsive
- Process state:
ps aux | grep dockershowscom.docker.backendrunningls ~/.docker/run/shows empty directory (nodocker.sock)
Solution
Quick Fix (one-liner)
Step-by-Step
- Identify the stuck backend process:
``bash ps aux | grep -i docker | grep -v grep # Look for: com.docker.backend ``
- Force kill the backend:
``bash killall -9 com.docker.backend # OR if you have the PID: kill -9 <pid> ``
- Wait for cleanup:
``bash sleep 3 ``
- Relaunch Docker Desktop:
``bash open -a Docker ``
- Wait for engine startup (~10 seconds):
``bash sleep 10 && docker ps ``
If Still Stuck
If the above doesn't work, try a complete reset:
Verification
After recovery, verify Docker is fully operational:
Expected: All commands succeed, socket file exists.
Example
Notes
- The
vmnetdprocess runs as root and cannot be killed by regular users—this is normal
and doesn't affect the fix
- Error -1712 is an AppleEvent timeout, indicating the app isn't responding to messages
- The socket location
~/.docker/run/docker.sockis the default for Docker Desktop on macOS;
some configurations may use /var/run/docker.sock symlinked to this location
- If this happens frequently, check Docker Desktop logs at:
~/Library/Containers/com.docker.docker/Data/log/host/docker-desktop.log
- AutoStart being false in settings (at
~/Library/Group Containers/group.com.docker/settings-store.json)
means Docker won't start the engine automatically on launch
See Also
- cdk-temp-folder-disk-bloat (Docker can accumulate disk space issues)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docker-desktop-stuck-state/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cajias/claude-skills/docker-desktop-stuck-state)