Can't delete a workspace which uses devcontainers
I created a new workspace using Docker DevContainers, but I'm unable to delete the workspace. It's throwing an error that says:
Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container d5711f770661 is using its referenced image 6d1d6302ce48.
6 Replies
<#1291102299741098035>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
This error occurs when a workspace using the DevContainers Docker template is currently running, and another workspace that also uses the template is attempted to be deleted.
CleanShot Cloud
Coder (Devcontainers Docker) - Failed to delete workspace
Video uploaded to CleanShot Cloud
Github Issue: https://github.com/coder/coder/issues/15064
GitHub
Unable to Delete Workspace: Conflict Error Due to Image Reference i...
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: ...
I trasnferred the issue to coder/envbuilder
cc: @Cian
this is probably an issue with the template tbh, terraform is trying to delete the image