coder / coder/envbuilder

Fallback image still uses username from failed build

オープン
#452 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
300
フォーク
64
平均マージ
20分
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the Dockerfile reproduction using the shown failed build and fallback image, then trace how Envbuilder selects the user when connecting to the fallback. Done means the fallback image can be used when the original Dockerfile specifies an unavailable user, with the intended root or configurable fallback-user behavior verified.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, go
領域
build-system, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。