devcontainer will not start: 'buildx' is not a docker command
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với các override của Flatpak và các đường dẫn trong settings.json, sau đó tái hiện lỗi docker buildx version đã được báo cáo. Xem lại .devcontainer/docker-compose.yml và các script khởi chạy trên host đã được ghi lại. Được xem là hoàn tất khi một devcontainer khởi động thành công trong Flatpak mà không gặp lỗi buildx đã báo cáo hoặc bị treo khi khởi động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It would be good to improve the documentation and the default experience for using devcontainers. I've made progress, but it doesn't seem like I have a working setup yet.
I have done the following in the process of trying to make it work in the flatpak (which appear to all be necessary to have got to this point):
Exposed /run/docker.sock to the container with:
flatpak override --user --filesystem=/run/docker.sock com.visualstudio.code
Changed the paths to docker and docker-compose in my settings.json, i.e.:
"dev.containers.dockerComposePath": "/run/host/usr/bin/docker-compose",
"dev.containers.dockerPath": "/run/host/usr/bin/docker",
But the devcontainer will not start because it cannot find buildx:
[918 ms] @devcontainers/cli 0.56.2. Node.js v18.17.1. linux 6.8.1-arch1-1 x64.
[918 ms] Start: Run: /run/host/usr/bin/docker buildx version
[931 ms]
[931 ms] docker: 'buildx' is not a docker command.
See 'docker --help'
[931 ms] Exit code 1
I've also tried adding a link from /usr/bin to docker-buildx (there was already one there for docker-compose).
If I open an integrated terminal, I can reproduce the failure with:
$ /run/host/bin/docker buildx version
docker: 'buildx' is not a docker command.
See 'docker --help'
And then I got it to work by creating scripts in /usr/local/bin that I point to in my settings.json:
"dev.containers.dockerComposePath": "/run/host/usr/local/bin/in-flatpak-do-host-spawn_docker-compose",
"dev.containers.dockerPath": "/run/host/usr/local/bin/in-flatpak-do-host-spawn_docker",
The file contents are as follows:
/usr/local/bin/in-flatpak-do-host-spawn_docker
#!/bin/bash
/app/bin/host-spawn docker "$@"
/usr/local/bin/in-flatpak-do-host-spawn_docker-compose
#!/bin/bash
/app/bin/host-spawn docker-compose "$@"
But then the devcontainer startup process seems to hang here:
[1650 ms] Start: Run: /run/host/usr/local/bin/in-flatpak-do-host-spawn_docker-compose --project-name 28th-ces_devcontainer -f /home/sean/Making/RoleModel/28th-ces/.devcontainer/docker-compose.yml -f /home/sean/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.build-1710714627644.yml -f /home/sean/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/docker-compose/docker-compose.devcontainer.containerFeatures-1710714765504.yml up -d --no-recreate
[+] Running 3/3
✔ Container 28th-ces_devcontainer-app-1 Started 0.0s
✔ Container 28th-ces_devcontainer-db-1 Running 0.0s
✔ Container 28th-ces_devcontainer-cache-1 Running 0.0s
[1985 ms] Start: Run: /run/host/usr/local/bin/in-flatpak-do-host-spawn_docker ps -q -a --filter label=com.docker.compose.project=28th-ces_devcontainer --filter label=com.docker.compose.service=app
[2021 ms] Start: Run: /run/host/usr/local/bin/in-flatpak-do-host-spawn_docker inspect --type container ab765af91650
[2062 ms] Start: Inspecting container
[2062 ms] Start: Run: /run/host/usr/local/bin/in-flatpak-do-host-spawn_docker inspect --type container ab765af916503e0639de70401328005369601b9e56890d74a52c0a9fab5e9139
[2104 ms] Start: Run in container: /bin/sh
[2112 ms] Start: Run in container: uname -m
- Ngôn ngữ chính
- Shell
- Star
- 216
- Fork
- 82
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 1
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.
Issue khác của flathub/com.visualstudio.code
-
Document podman/docker Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flathub/com.visualstudio.code#679 · 4 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
flathub/com.visualstudio.code#563 · 2 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
flathub/com.visualstudio.code#388 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
flathub/com.visualstudio.code#715 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
flathub/com.visualstudio.code#710 ·
Tất cả issue của flathub/com.visualstudio.code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
huggingface/Repo2RLEnv#163 · 1 bình luận ·
-
setup tools wizard offers no GitHub auth path, and setup summary doesn't recognize `gh` CLI auth Đang mởarea/auth comp/cli P3 tool/skills type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#121131 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bradcypert/plum#53 ·
-
tmp_watchgod.sh exceeds the 1000-line cap; the Zone A guard helpers are a clean extraction seam Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
WingedGuardian/GENesis-AGI#2301 ·