Skip to content

Fallback image still uses username from failed build #452

@joehutcheson

Description

@joehutcheson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions