RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1222784 - Removing an image via API removes just one repository
Summary: Removing an image via API removes just one repository
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Minar
QA Contact: Luwen Su
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-19 07:26 UTC by Tomas Tomecek
Modified: 2019-03-06 00:41 UTC (History)
6 users (show)

Fixed In Version: docker-1.6.0-13.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-23 09:29:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1167 0 normal SHIPPED_LIVE docker bug fix update 2015-06-23 13:29:05 UTC

Description Tomas Tomecek 2015-05-19 07:26:54 UTC
Upstream issue:

https://github.com/docker/docker/issues/13300


TL;DR

If you have one image tagged in at least two repositories, doing `docker rmi $ID` untags just one repository and the other persists.

Comment 2 Michal Minar 2015-05-19 08:41:39 UTC
Thanks Tomas for reporting.

Here's is a fix in current Docker master: https://github.com/docker/docker/commit/5c3b228b61dbba3a7f4c7635537d610f18969429

IMHO it is worth backporting to 1.6 branches.

Comment 3 Daniel Walsh 2015-05-19 12:18:56 UTC
Michal can you back port a fix for this for rhel7-1.6

Comment 4 Michal Minar 2015-05-25 08:44:47 UTC
PR: https://github.com/rhatdan/docker/pull/55

Comment 5 Tomas Tomecek 2015-05-26 07:28:14 UTC
Works as expected, thanks Michal!

Comment 7 Luwen Su 2015-06-15 08:05:53 UTC
In docker-1.6.2-10.el7.x86_64

# docker images
docker.io/time/busybox             latest              8c2e06607696        8 weeks ago         2.43 MB
docker.io/timesu/busybox           latest              8c2e06607696        8 weeks ago         2.43 MB
docker.io/busybox                  latest              8c2e06607696        8 weeks ago         2.43 MB
time/busybox                       latest              8c2e06607696        8 weeks ago         2.43 MB
timesu/busybox                     latest            8c2e06607696   

#docker rmi -f 8c2e06607696  
Untagged: docker.io/time/busybox:latest
Untagged: docker.io/timesu/busybox:latest
Untagged: time/busybox:latest
Untagged: timesu/busybox:latest
Untagged: docker.io/busybox:latest
Deleted: 8c2e06607696bd4afb3d03b687e361cc43cf8ec1a4a725bc96e39f05ba97dd55
Deleted: 6ce2e90b0bc7224de3db1f0d646fe8e2c4dd37f1793928287f6074bc451a57ea
Deleted: cf2616975b4a3cba083ca99bc3f0bf25f5f528c3c52be1596b30f60b0b1c37ff

Move to verified

Comment 9 errata-xmlrpc 2015-06-23 09:29:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1167.html


Note You need to log in before you can comment on or make changes to this bug.