Unable to install Compose from the Docker-in-Docker feature on top of DHI
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, docker-compose
- Domain
- devops, infrastructure
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.
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"
}
},
- Dominant language
- Shell
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathieu-benoit/devcontainers
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in mathieu-benoit/devcontainers
Similar issues
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·
-
chore
Difficulty 1/5 Under an hour Newbie friendliness 91/100
alunduil/alunduil-chezmoi#792 ·
-
area: compat bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
zenhub-dev
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenLiberty/ci.docker#747 ·