devcontainers / devcontainers/cli

Docker v23 on linux causes devcontainer dockerfile to fail with eof

Đang mở
#398 3 bình luận 0 reaction 1 người được giao Được @chrmarti nhận Xem trên GitHub
bug upstream
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

I have a pretty simple setup

**.devcontainer/devcontainer.json**
```json
{
"build": {
"dockerfile": "Dockerfile"
}
}
```

**.devcontainer/Dockerfile**
```dockerfile
FROM mcr.microsoft.com/devcontainers/base:debian
```

When I execute:

```bash
devcontainer build --workspace-folder .
```

It fails with:

```
[8 ms] @devcontainers/cli 0.29.0. Node.js v18.12.1. linux 5.15.0-58-generic x64.
[131 ms] Start: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nick/container-features/0.29.0-1675436665362/Dockerfile-with-features -t vsc-pdx-tools-c6e30ed9b67aad39ca1d11866a63d38e --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nick/projects/pdx-tools/.devcontainer
[+] Building 0.1s (4/5)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile-with-features 0.1s
=> => transferring dockerfile: 433B 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/base:deb 0.0s
=> CACHED [dev_container_auto_added_stage_label 1/1] FROM mcr.microsoft. 0.0s
=> preparing layers for inline cache 0.1s
ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nick/container-features/0.29.0-1675436665362/Dockerfile-with-features -t vsc-pdx-tools-c6e30ed9b67aad39ca1d11866a63d38e --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nick/projects/pdx-tools/.devcontainer
at pie (/home/nick/.volta/tools/image/packages/@devcontainers/cli/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1916:1698)
at async vF (/home/nick/.volta/tools/image/packages/@devcontainers/cli/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1915:1972)
at async uoe (/home/nick/.volta/tools/image/packages/@devcontainers/cli/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:2045:26894)
at async aoe (/home/nick/.volta/tools/image/packages/@devcontainers/cli/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:2045:25017)
{"outcome":"error","message":"Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nick/container-features/0.29.0-1675436665362/Dockerfile-with-features -t vsc-pdx-tools-c6e30ed9b67aad39ca1d11866a63d38e --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nick/projects/pdx-tools/.devcontainer","description":"An error occurred building the image."}
```

I'm assuming this has something to do with Docker v23 (released a couple days ago) making buildkit the default on linux.

I'm happy to provide more info about my environment if that'll help -- or if there is a better repo to report this issue.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.