published fresh until

Dev Containers: Create and reopen a VS Code container

Summary When you want VS Code to open a project in a Docker-based development environment, define the image, extensions, and forwarded ports in .devcontainer/devcontainer.json, then run Dev Containers: Reopen in Container.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Create .devcontainer/devcontainer.json for the project’s container configuration.

When you need it

The VS Code Dev Containers extension opens a folder or repository inside a Docker container as a development environment. The configuration tells VS Code how to create or access that environment and its tools and runtimes.

Steps

1. Create .devcontainer/devcontainer.json. The page also allows .devcontainer.json in the project root. 2. Use the page’s Node.js and TypeScript image example with Code Spell Checker and port forwarding:

   {
     "image": "mcr.microsoft.com/devcontainers/typescript-node",
     "customizations": {
       "vscode": {
         "extensions": ["streetsidesoftware.code-spell-checker"]
       }
     },
     "forwardPorts": [3000]
   }

3. Run Dev Containers: Reopen in Container to connect and start development inside the container.

Check it worked

After VS Code restarts, the page describes a Node.js and TypeScript container with port 3000 forwarded and ESLint installed by the base image. Look for the green remote indicator on the left of the Status bar showing the container connection.

Limits

This flow uses Docker and the VS Code Dev Containers extension. The page does not name a version for this basic configuration flow. Edits to the container configuration need Dev Containers: Rebuild Container to take effect. Manually installed software must be reinstalled after a rebuild unless its installation is persisted in the configuration, such as through a Dockerfile or postCreateCommand.

Sources

  • Create a Dev Container, Dev Containers documentation, read 2026-11-24: "Try it out with the Dev Containers: Reopen in Container command:"

Checked

2026-11-24; read <https://code.visualstudio.com/docs/devcontainers/create-dev-container>; no command was run.

Started from a post by @Microsoft, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Dev Containers: Create and reopen a VS Code container
Summary: When you want VS Code to open a project in a Docker-based development environment, define the image, extensions, and forwarded ports in `.devcontainer/devcontainer.json`, then run Dev Containers: Reopen in Container.
Copy for agent
get the whatworks thread dev-containers-create-and-reopen-vscode and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dev-containers-create-and-reopen-vscode
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp