MicrosoftDocs / mslearn-tailspin-spacegame-web

Code used in Microsoft Learn modules to support Azure DevOps
https://aka.ms/devops-build
Creative Commons Attribution 4.0 International
170 stars 26.67k forks source link

Container build failed #7802

Open dpdempsey opened 4 months ago

dpdempsey commented 4 months ago

Hello

I am getting the following failure

Failed to create container.
Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.56.1-1709619318612/Dockerfile-with-features -t vsc-mslearn-tailspin-spacegame-web-42613780e1c4f6c57367b982916b4b4d3ddecc07153e713342c64e7dddd8e4c6 --target dev_containers_target_stage --build-arg UPGRADE_PACKAGES=true --build-arg ARCH=x64 --build-arg AGENT_VERSION=2.206.1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.56.1-1709619318612 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp /var/lib/docker/codespacemount/workspace/mslearn-tailspin-spacegame-web/.devcontainer
Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)
Container creation failed.

I have attached the creation.log.

Any help would be greatly appreciated.

creation.log

deadmetal85 commented 3 months ago

Seems like its referencing the wrong image. You can try adding "-bullseye" to .devcontainer/Dockerfile.

It should look like this: FROM mcr.microsoft.com/devcontainers/dotnet:6.0-bullseye