Portainer: Error when deleting images - image is referenced in multiple repositories

Created on 13 Jan 2017  路  1Comment  路  Source: portainer/portainer

Description
When deleting image with multiple tags, I get an error:
conflict: unable to delete 484572f86ccd (must be forced) - image is referenced in multiple repositories
This is by design - https://github.com/docker/docker/issues/1530

Steps to reproduce the issue:

  1. docker tag ubuntu ubuntu:repro1
  2. docker tag ubuntu ubuntu:repro2
  3. from portainer Images view try to delete ubuntu image - you get an error.

Potential Solution:

Portainer probably deletes by Image ID, but this fails for multiple tags. Solution would be to delete by image:tag pair.

areimage-details areimages kinenhancement

Most helpful comment

This is the default behavior of Docker. We might introduce a checkbox close to the remove button to force the remove of the image (equivalent of docker rmi -f <IMAGE_ID>, will remove the image even if it is used by containers or having multiple tags).

>All comments

This is the default behavior of Docker. We might introduce a checkbox close to the remove button to force the remove of the image (equivalent of docker rmi -f <IMAGE_ID>, will remove the image even if it is used by containers or having multiple tags).

Was this page helpful?
0 / 5 - 0 ratings