mathieu-benoit / mathieu-benoit/devcontainers
Unable to install Compose from the Docker-in-Docker feature on top of DHI
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 1
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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"
}
},
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với .devcontainer/dhi-docker/devcontainer.json được tham chiếu và tái hiện quá trình build bằng feature Docker-in-Docker. Sau đó kiểm tra src/docker-in-docker/install.sh quanh dòng 681 và lỗi curl, sử dụng các log được hiển thị để truy vết lý do Compose không thể được ghi. Được xem là hoàn tất khi feature cài đặt Compose thành công mà không đặt dockerDashComposeVersion thành none.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, docker-compose
- Lĩnh vực
- devops, infrastructure
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100