Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback image still uses username from failed build #452

Open
joehutcheson opened this issue Feb 7, 2025 · 0 comments
Open

Fallback image still uses username from failed build #452

joehutcheson opened this issue Feb 7, 2025 · 0 comments

Comments

@joehutcheson
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant