devcontainers / devcontainers/spec

Devcontainer Build without cache hangs after mostly successful build

Open
#740 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
5.7k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

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.

```bash
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...

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

Why would I be getting this error?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.