Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cannot build devcontainers features

オープン
#605 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@olivierlemasle がすでに取り組んでいます。

2025年7月29日 から。

  • #3 @francoism90 による — マージ済み
  • #606 @olivierlemasle による — オープン

評価

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

調査の方向性

まず、報告された VS Code Flatpak のセットアップを Podman と、示されている podman-remote buildx コマンドを使って再現します。Dockerfile とビルドコンテキストが Flatpak 環境から渡されている一方で、/tmp/devcontainercli-user/container-features/... がホスト側の Podman ビルドから利用できない理由を調査します。このセットアップで dev container features のビルドが正常に成功すれば完了です。

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

説明

When using vscode on Flatpak with podman and devcontainers as suggested here, builing of devcontainer feature fails.

The cause is that this involves building a container image with a build context which is not shared with the host:

[1/2] STEP 3/4: COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/
Error: building at STEP "COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/": checking on sources under "/tmp/devcontainercli-user/container-features/0.79.0-1753825289342": error in copier subprocess: changing to intended-new-root directory "/tmp/devcontainercli-user/container-features/0.79.0-1753825289342": chdir /tmp/devcontainercli-user/container-features/0.79.0-1753825289342: no such file or directory
Stop (729 ms): Run: podman-remote buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-user/container-features/0.79.0-1753825289342 --no-cache --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/go:1-1.23-bookworm --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-user/container-features/0.79.0-1753825289342/Dockerfile.extended -t vsc-mycode-e878bb43015990a9f48c5b2226813a3b60f7a9ab826928aad91c912747c3bc3c-features /var/home/user/.var/app/com.visualstudio.code/config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
Error: Command failed: podman-remote buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-user/container-features/0.79.0-1753825289342 --no-cache --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/go:1-1.23-bookworm --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-user/container-features/0.79.0-1753825289342/Dockerfile.extended -t vsc-mycode-e878bb43015990a9f48c5b2226813a3b60f7a9ab826928aad91c912747c3bc3c-features /var/home/user/.var/app/com.visualstudio.code/config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder

Here, the failing command is:

podman-remote buildx build --load \
  --build-context dev_containers_feature_content_source=/tmp/devcontainercli-user/container-features/0.79.0-1753825289342 \
  --no-cache \
  --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/go:1-1.23-bookworm \
  --build-arg _DEV_CONTAINERS_IMAGE_USER=root \
  --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp \
  --target dev_containers_target_stage \
  -f /tmp/devcontainercli-user/container-features/0.79.0-1753825289342/Dockerfile.extended \
  -t vsc-mycode-e878bb43015990a9f48c5b2226813a3b60f7a9ab826928aad91c912747c3bc3c-features \
  /var/home/user/.var/app/com.visualstudio.code/config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder

and it fails because the build context is not accessible from the host, where podman is running.

主要言語
Shell
スター
218
フォーク
80
平均マージ
6日 3時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flathub/com.visualstudio.code のほかの issue

flathub/com.visualstudio.code の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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