Open stoically opened 4 years ago
This occurred for me when I had multiple tags referring to the same image (e.g. nginx:latest and nginx:1.19.3). I worked around the issue by manually force-deleting the image with docker rmi -f [image id]
. You should probably stop other containers using that specific image first though.
Terraform Version
Terraform v0.13.3
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Should always silently upgrade the image / container
Actual Behavior
Error: Unable to remove Docker image: Error response from daemon: conflict: unable to delete 1a3f0281f41e (must be forced) - image is referenced in multiple repositories
Steps to Reproduce
Unfortunately not sure how to reproduce
Notes
Would it be safe to always force-remove images?