coder / coder/envbuilder

Unable to Delete Workspace: Conflict Error Due to Image Reference in Use by Another Container

Đang mở
#387 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
300
Fork
64
Merge trung bình
20 phút
Pull request đã merge (30 ngày)
1

Mô tả

### **Issue:**
When attempting to delete a workspace that uses the DevContainers Docker template, and another running container is using the same image, the deletion fails with the following error:

```
Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container xxxxxxx is using its referenced image xxxxxxx.
```

#### **Steps to Reproduce:**
1. Create two workspaces, both using the DevContainers Docker template.
2. Attempt to delete one workspace while the other is still running and using the same template.
3. Observe the conflict error during the deletion process.

#### **Workaround:**
Attempting to delete the workspace after stopping the other running workspace succeeds.

#### **Additonal Info:**
- Similar issue on the Coder Discord:
[Link to message on Discord](https://discord.com/channels/747933592273027093/971231372373033030/1295386218669936761)

#### **Environment:**
- **Coder Version**: v2.16.0+683a720
- **OS**: Linux (installed using the setup script)

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

Hướng nghiên cứu

Báo cáo không nêu tên tệp mã nguồn hay bài kiểm thử nào. Trước tiên, hãy tái hiện việc xóa với hai workspace bằng DevContainers Docker template, sau đó lần theo đường dẫn xóa workspace tại nơi Docker image bị xóa. Hoàn tất khi có thể xóa một workspace trong khi một container đang chạy khác vẫn tham chiếu đến image dùng chung.

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
Lĩnh vực
devops
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
35/100

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.