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 1215819 - docker commit --change LABEL does not work
Summary: docker commit --change LABEL does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: Luwen Su
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-27 20:20 UTC by Chris Evich
Modified: 2019-03-06 00:54 UTC (History)
4 users (show)

Fixed In Version: docker-1.6.2-11.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-23 09:29:28 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 Chris Evich 2015-04-27 20:20:55 UTC
Description of problem:
Attempting to change LABEL instruction during commit results in unhelpful error messages then fails entirely

Version-Release number of selected component (if applicable):
docker-1.5.0-28.el7.x86_64

How reproducible:
Trivial

Steps to Reproduce:
1. # docker run --name foobar registry.access.redhat.com/rhel7:latest true
2. # docker commit --change LABEL foobar baz
3. # docker commit --change "LABEL RUN" foobar baz
4. # docker commit --change "LABEL RUN FAST" foobar baz

Actual results:
# docker commit --change LABEL foobar baz
FATA[0000] Error response from daemon: LABEL requires at least one argument 
# docker commit --change "LABEL RUN" foobar baz
FATA[0000] Error response from daemon: LABEL must have two arguments 
# docker commit --change "LABEL RUN FAST" foobar baz
FATA[0000] Error response from daemon: label is not a valid change command 

Expected results:
# docker commit --change LABEL foobar baz
FATA[0000] Error response from daemon: LABEL must have two arguments 
# docker commit --change "LABEL RUN FAST" foobar baz
<image 'baz' created with "RUN" label set to "FAST">

Additional info:
No example or format-string is specified for this option in docs or man-page.  Checked upstream docs, and did google-search on this command and errors, found nothing relevant.  I took a guess --change would accept JSON format string, but this failed with 'label is not a valid change command'.

Comment 2 Daniel Walsh 2015-06-02 18:19:37 UTC
Should be fixed in docker-1.6.2

Comment 4 Luwen Su 2015-06-15 07:57:32 UTC
In docker-1.6.2-10.el7.x86_64

Still failed both through https://github.com/rhatdan/docker/commit/cdfdfbfb6223fdd5b319942d412caac6bc09cdeb and https://docs.docker.com/reference/builder/#label

# docker commit -c="LABEL DEBUG=true" f241268a0d03 testlabel1
FATA[0000] Error response from daemon: label is not a valid change command

# docker commit -c="LABEL DEBUG" f241268a0d03 testlabel1FATA[0000] Error response from daemon: LABEL must have two arguments

Comment 5 Daniel Walsh 2015-06-15 13:28:00 UTC
Lokesh I just pushed a fix for this into docker-1.6.2,  We should fix it before release.

Comment 7 Luwen Su 2015-06-16 03:25:13 UTC
In docker-1.6.2-14.el7.x86_64
# docker commit -c 'label version=1' 29a72e00bf87 label/test
e5d411c52bb0fe394c7ed05290a41c805dba2ab8d67ec8b07058fb6b9288be17
## docker inspect -f '{{.Config.Labels.version}}' e5d411c52bb0fe394c7ed05290a41c805dba2ab8d67ec8b07058fb6b9288be17
1

Move to verified

Comment 9 errata-xmlrpc 2015-06-23 09:29:28 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.