Skip to content

Devcontainer Build without cache hangs after mostly successful build #1229

Description

@ontoneio

So I am running into a weird issue with my devcontainer environment. I am building without the cache inside a Vscode IDE and the image build seems to get to the very last step and then throws this warning and does not ever resolve the build into the devcontainer environment.

 1 warning found (use docker --debug to expand):
 - InvalidDefaultArgInFrom: Default value for ARG $BASE_IMAGE results in empty or invalid base image name (line 2)
[303440 ms] Start: Run: docker events --format {{json .}} --filter event=start
[303442 ms] Start: Starting container

I personally do not have a BASE_IMAGE Argument present in my docker image, so I am not understanding why my build would be failing to propagate due to a variable I don't use?

For debugging sake I even tried adding these lines and still get the error from above...

ARG BASE_IMAGE=mcr.microsoft.com/vscode/devcontainers/base:ubuntu-24.04
FROM ${BASE_IMAGE} AS base

Why would I be getting this error?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions