Fallback image still uses username from failed build
- Dominant language
- Go
- Stars
- 300
- Forks
- 64
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Description
When a Docker image fails to build and the fallback image is used, Envbuilder still attempts to use the username specified in the broken Dockerfile and tries to connect to the fallback image using that username. Often the fallback image doesn’t have the user in the original image and so we cannot connect to the fallback image.
# Reproduction
Dockerfile:
```
FROM mcr.micrdosoft.com/devcontainers/base:ubuntu-22.04
USER vscode
RUN false
```
Fallback image: `ubuntu:24.04`
Should the user be set to `root` when the fallback image is used or even allow a ENVBUILDER_FALLBACK_IMAGE_USER environment variable to be specified?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.