Unable to install Compose from the Docker-in-Docker feature on top of DHI

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

まだ誰も着手していません。

評価

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

調査の方向性

参照されている .devcontainer/dhi-docker/devcontainer.json から始め、Docker-in-Docker feature を使ってビルドを再現します。次に、src/docker-in-docker/install.sh の 681 行目付近と curl の失敗を調べ、表示されているログを使って Compose を書き込めない理由を追跡します。dockerDashComposeVersion を none に設定せずに feature が Compose を正常にインストールできれば完了です。

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

説明

When using this https://github.com/mathieu-benoit/devcontainers/blob/f7861d318deade9859072e001f6521839ad7b057/.devcontainer/dhi-docker/devcontainer.json, getting this error:

22.37 Finished installing docker / moby!
22.44 compose_version=2.40.3
22.44 (*) Installing docker-compose 2.40.3...
22.57 curl: (23) Failure writing output to destination
22.57 
22.57 (!) Failed to fetch the latest artifacts for docker-compose v2.40.3...
22.57 
22.57 (!) Failed to fetch the latest artifacts for docker-compose v2.40.3...
23.48 
23.48 Attempting to find latest version using GitHub Api.
23.54 compose_version=5.0.0
23.54 
23.54 Attempting to install v5.0.0
23.70 curl: (23) Failure writing output to destination
23.70 ERROR: Feature "Docker (Docker-in-Docker)" (ghcr.io/devcontainers/features/docker-in-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-in-docker for help troubleshooting this error.
------
[+] build 0/1
 ⠙ Image dhi-docker-workspace Building                                    27.8s 

This is the error:

curl: (23) Failure writing output to destination

Failing here: https://github.com/devcontainers/features/blob/main/src/docker-in-docker/install.sh#L681C139-L681C158.

If changing this below, going further, but need to have compose in there, so need to find a solution:

	"features": {
		"ghcr.io/devcontainers/features/docker-in-docker:2": {
			"moby": true,
-			"version": "latest"
+			"version": "latest",
+           "dockerDashComposeVersion": "none"
		}
	},
主要言語
Shell
スター
1
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

mathieu-benoit/devcontainers のほかの issue

mathieu-benoit/devcontainers の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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