Codespace Running in Recovery Mode: "This codespace is currently running in recovery mode due to a container error"

Share
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. 1. Find the error in the creation log

    1. Open the Command Palette and run "Codespaces: View Creation Log"
    2. Look for the failing step or the JSON/Dockerfile error
    Did this fix it?
  2. 2. Fix the configuration and rebuild

    1. Edit .devcontainer/devcontainer.json or the Dockerfile to correct the error
    2. Restart the codespace
    3. 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 us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other GitHub Codespaces errors

All 11 GitHub Codespaces errors and fixes →