mathieu-benoit / mathieu-benoit/devcontainers

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

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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"
		}
	},

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced .devcontainer/dhi-docker/devcontainer.json and reproduce the build using the Docker-in-Docker feature. Then inspect src/docker-in-docker/install.sh around line 681 and the curl failure, using the shown logs to trace why Compose cannot be written. Done means the feature installs Compose successfully without setting dockerDashComposeVersion to none.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.