Workaround for devcontainer expired key issue (#3432)

* Update devcontainer versions for .net

* Fix version number

* Remove docker in docker

* bring back docker in docker

* Try bookworm version of container

* Try the trixie image

* Try noble container

* Try preview image

* Try 2-10.0

* Add docker file to work around devcontainer bug
This commit is contained in:
westey
2026-01-26 14:02:06 +00:00
committed by GitHub
Unverified
parent cec8bd348e
commit bbe096a764
2 changed files with 13 additions and 4 deletions
+8 -4
View File
@@ -1,11 +1,15 @@
{
"name": "C# (.NET)",
"image": "mcr.microsoft.com/devcontainers/dotnet:10.0",
//"image": "mcr.microsoft.com/devcontainers/dotnet",
// Workaround for https://github.com/devcontainers/images/issues/1752
"build": {
"dockerfile": "dotnet.Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/dotnet:2.4.0": {},
"ghcr.io/devcontainers/features/dotnet:2.4.2": {},
"ghcr.io/devcontainers/features/powershell:1.5.1": {},
"ghcr.io/devcontainers/features/azure-cli:1.2.8": {},
"ghcr.io/devcontainers/features/docker-in-docker:2.12.4": {}
"ghcr.io/devcontainers/features/azure-cli:1.2.9": {},
"ghcr.io/devcontainers/features/docker-in-docker:2.14.0": {}
},
"workspaceFolder": "/workspaces/agent-framework/dotnet/",
"customizations": {
+5
View File
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/dotnet
# Remove Yarn repository with expired GPG key to prevent apt-get update failures
# Tracking issue: https://github.com/devcontainers/images/issues/1752
RUN rm -f /etc/apt/sources.list.d/yarn.list