Unable to Delete Workspace: Conflict Error Due to Image Reference in Use by Another Container
- 主要言語
- Go
- スター
- 300
- フォーク
- 64
- 平均マージ
- 20分
- マージ済み PR(30日)
- 1
説明
### **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)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
No source file or test is named in the report. Start by reproducing deletion with two workspaces using the DevContainers Docker template, then trace the workspace deletion path where the Docker image is removed. Done means one workspace can be deleted while another running container still references the shared image.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100