coder / coder/envbuilder

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

Aperta
#387 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
300
Fork
64
Merge medio
20m
PR unite (30g)
1

Descrizione

### **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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.