Docker Hub
hub.docker.com › r › microsoft › vscode-devcontainers
microsoft/vscode-devcontainers - Docker Image
docker run -it --init --rm mcr.microsoft.com/vscode/devcontainers/base:0-buster Copy
Visual Studio Code
code.visualstudio.com › docs › devcontainers › containers
Developing inside a Container
November 3, 2021 - If a base image or Feature configures an extension that you do not want installed in your dev container, you can opt out by listing the extension with a minus sign. For example: { "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm", "customizations": { "vscode": { "extensions": ["-dbaeumer.vscode-eslint"] } } }
Visual Studio Code
code.visualstudio.com › docs › devcontainers › create-dev-container
Create a Dev Container
November 3, 2021 - { "image": "mcr.microsoft.com/devcontainers/typescript-node", "customizations": { "vscode": { "extensions": ["streetsidesoftware.code-spell-checker"] } }, "forwardPorts": [3000] } Note: Additional configuration will already be added to the container based on what's in the base image.
Visual Studio Code
code.visualstudio.com › docs › devcontainers › tutorial
Dev Containers tutorial
November 3, 2021 - More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, "customizations": { "vscode": { "settings": {}, "extensions": ["streetsidesoftware.code-spell-checker"] } }, // "forwardPorts": [3000], "portsAttributes": { "3000": { "label": "Hello Remote World", "onAutoForward": "notify" } }, "postCreateCommand": "yarn install" // "remoteUser": "root" }
GitHub
github.com › microsoft › vscode-dev-containers › blob › main › containers › cpp › .devcontainer › base.Dockerfile
vscode-dev-containers/containers/cpp/.devcontainer/base.Dockerfile at main · microsoft/vscode-dev-containers
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} · # Install needed packages. Use a separate RUN statement to add your own dependencies. COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers ·
Author microsoft
Microsoft
mcr.microsoft.com › en-us › product › devcontainers › base › about
Base Development Container Images
Microsoft Artifact Registry (also known as Microsoft Container Registry or MCR) Discovery Portal
GitHub
github.com › microsoft › vscode-dev-containers
GitHub - microsoft/vscode-dev-containers: NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own! · GitHub
November 30, 2023 - mcr.microsoft.com/devcontainers and mcr.microsoft.com/vscode/devcontainers images are now published from devcontainers/images.
Starred by 4.7K users
Forked by 1.4K users
Languages Shell 78.1% | Dockerfile 8.2% | JavaScript 7.0% | Jupyter Notebook 4.4% | Python 0.9% | C# 0.4%
GitHub
github.com › microsoft › vscode-dev-containers › blob › main › containers › python-3 › README.md
vscode-dev-containers/containers/python-3/README.md at main · microsoft/vscode-dev-containers
mcr.microsoft.com/vscode/devcontainers/python:3.9 (or 3.9-bullseye, 3.9-buster to pin to an OS version)
Author microsoft
Docker Hub
hub.docker.com › r › microsoft › devcontainers-base
microsoft/devcontainers-base - Docker Image
mcr.microsoft.com/devcontainers/base:alpine (latest) ... Refer to this guide for more details. You can decide how often you want updates by referencing a semantic version of each image. For example: ... See history for information on the contents of each version and here for a complete list of available tags. Beyond git, this image / Dockerfile includes zsh, Oh My Zsh!, a non-root vscode user with sudo access, and a set of common dependencies for development.
Top answer 1 of 3
6
In my case, I could not use runArgs in the devcontainer.json because we are using dockerComposeFile.
The solution was to configure the per-service platform inside the relevant docker-compose.yml, e.g.:
version: "3"
services:
some-service-only-as-amd64:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
ports:
- 5000:5000
volumes:
# ... and so on
2 of 3
6
For me, I got it to work by adding --platform=linux/amd64 to the build.options property in devcontainer.json. e.g.:
{
// Other properties
"build": {
"context": "..",
"dockerfile": "Dockerfile",
"options": [
"--platform=linux/amd64"
]
},
// Other properties
}
"context": ".."specifies the build context directory."dockerfile": "Dockerfile"points to the Dockerfile used for the build."options": ["--platform=linux/amd64"]adds the--platformoption to target thelinux/amd64architecture.
In the json reference for devcontainer.json it says that you can add Docker image build options in the build.options property.
References:
- devcontainer.json Reference
- Image-specific JSON Reference
- Docker Buildx Build Options
- Docker Buildx Platform Options
Microsoft
mcr.microsoft.com › v2 › vscode › devcontainers › base › tags › list json
Microsoft
Microsoft Artifact Registry (also known as Microsoft Container Registry or MCR) Discovery Portal
Microsoft
mcr.microsoft.com › vscode › devcontainers
Microsoft Artifact Registry
Microsoft Artifact Registry (also known as Microsoft Container Registry or MCR) Discovery Portal
Microsoft Learn
learn.microsoft.com › en-us › dotnet › aspire › get-started › dev-containers
Dev Containers in Visual Studio Code | Aspire
October 2, 2025 - "image": "mcr.microsoft.com/devcontainers/dotnet:dev-10.0-noble", "features": { "ghcr.io/devcontainers/features/node:1": { "version": "lts" } }, "onCreateCommand": "curl -sSL https://aspire.dev/install.sh | bash", "postStartCommand": "dotnet dev-certs https --trust", "customizations": { "vscode": { "extensions": [ "ms-dotnettools.csdevkit", "ms-vscode.vscode-typescript-next" ] } } } This configuration provides both .NET and Node.js development capabilities within the same container environment.
GitHub
github.com › devcontainers › images
GitHub - devcontainers/images: Repository for pre-built dev container images published under mcr.microsoft.com/devcontainers · GitHub
Repository for pre-built dev container images published under mcr.microsoft.com/devcontainers - devcontainers/images
Starred by 2K users
Forked by 904 users
Languages Shell 46.4% | JavaScript 42.9% | Dockerfile 7.8% | Java 1.0% | Python 0.7% | C# 0.3%
GitHub
github.com › microsoft › vscode-dev-containers › issues › 532
Images have moved to https://github.com/devcontainers/images · Issue #532 · microsoft/vscode-dev-containers
August 31, 2020 - mcr.microsoft.com/vscode/devcontainers/base:alpine-3.13 · Alpine · 3.14 · June 15th, 2021 · May 1st, 2023 · mcr.microsoft.com/vscode/devcontainers/base:alpine-3.14 · Alpine · 3.15 · Nov 24th, 2021 · Nov 1st, 2023 · mcr.microsoft.com/vscode/devcontainers/base:alpine-3.15 ·
Author Chuxel
GitHub
github.com › microsoft › vscode-docs › blob › main › docs › devcontainers › tutorial.md
vscode-docs/docs/devcontainers/tutorial.md at main · microsoft/vscode-docs
You can explore this image in greater detail in the devcontainers/images repo. First, your image is built from the supplied Dockerfile or image name, which would be mcr.microsoft.com/devcontainers/javascript-node:0-18 in this example. Then a container is created and started using some of the settings in the devcontainer.json.
Author microsoft
Microsoft Developer Blogs
devblogs.microsoft.com › dev blogs › ise developer blog › development containers simplified
Development Containers Simplified - ISE Developer Blog
July 18, 2024 - Based on your project technology stack, you need to select the container image that contains all the tools and dependencies needed to run your development environment. ... The following example shows how to configure your dev container to use the Java 17 on Debian OS container image. { "name": "Java 17", "image": "mcr.microsoft.com/devcontainers/java:17-bullseye", }
Medium
medium.com › versent-tech-blog › introduction-to-dev-containers-4c01cb1752a0
Introduction to Dev Containers. An introduction to Dev Containers in… | by Mathew Hemphill | Versent Tech Blog | Medium
June 19, 2024 - { "name": "Java Development", "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/devcontainers/features/git:1": { "version": "latest", "ppa": "false" }, "ghcr.io/devcontainers/features/java:1": { "version": "21", "jdkDistro": "amzn", "installMaven": "true", "mavenVersion": "3.9.7", "installGradle": "false" } }, "containerEnv": {}, "customizations": { "vscode": { "settings": {}, "extensions": [ "vscjava.vscode-java-pack" ] } } }