Codespace Running in Recovery Mode: "This codespace is currently running in recovery mode due to a container error"
Workaround available Browser, VS Code, GitHub CLI Updated November 14, 2026Based on 2 user reportsHow we research
Quick answer
Recovery mode means your dev container configuration is invalid, so Codespaces fell back to a basic container. Read the creation log, fix devcontainer.json, then restart or rebuild.
Most likely fix: Find the error in the creation log
How to fix it
Try these in order — the most common fix is first.
1. Find the error in the creation log
- Open the Command Palette and run "Codespaces: View Creation Log"
- Look for the failing step or the JSON/Dockerfile error
Did this fix it?2. Fix the configuration and rebuild
- Edit .devcontainer/devcontainer.json or the Dockerfile to correct the error
- Restart the codespace
- If restarting does not help, run "Codespaces: Rebuild Container"
Did this fix it?
Symptoms
Banner or message: "This codespace is currently running in recovery mode due to a container error." Your extensions, tools and features from devcontainer.json are missing.
Why it happens
- An invalid change to the dev container configuration (devcontainer.json or Dockerfile)
- A failed build step, feature or lifecycle script in the container
This guide also covers
- codespace recovery mode
- codespaces container error recovery mode
- this codespace is currently running in recovery mode
Still not working?
If GitHub Codespaces keeps failing, you're not alone. See every GitHub Codespaces problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Other GitHub Codespaces errors
- GitHub Codespaces Creation Failed
- Can't Create a Codespace: No Option to Create on the Repository
- GitHub Codespaces "503 Service Unavailable" Error
- Codespaces "Oh no, it looks like you are offline" and Other Connection Errors
- GitHub Codespaces Port Forwarding Not Working
- Codespace Out of Storage: How to Free Disk Space
- Codespaces Included Usage Used Up: Core Hours and Storage Quota
- Codespaces Prebuild Not Working: "Prebuild Ready" Label Missing