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 1478024 - Unconsumed Build-Arg specification while building docker image
Summary: Unconsumed Build-Arg specification while building docker image
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Antonio Murdaca
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2017-08-03 13:17 UTC by Suhaas Bhat
Modified: 2021-03-11 15:31 UTC (History)
3 users (show)

Fixed In Version: docker-1.12.6-55.gitc4618fb.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-29 22:46:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Suhaas Bhat 2017-08-03 13:17:06 UTC
Description of problem:

We need to specify build argument in a Docker file for building a docker image even if we don't consume it. It is resulting in unnecessary argument Declaration in every file.

Version-Release number of selected component (if applicable):

Red Hat Enterprise Linux 7.3
docker-1.12.6-48.git0fdc778.el7.x86_64


How reproducible:

Fully reproducible

Steps to Reproduce:

**********
-bash-4.2# docker build --build-arg VERSION=3.1.4 -t hello-error .
Sending build context to Docker daemon 530.4 kB
Step 1 : FROM rhel7:latest
 ---> f98706e16e41
Step 2 : USER root
 ---> Using cache
 ---> accce8f399a0
Step 3 : MAINTAINER Maintainer_Name
 ---> Using cache
 ---> 9694f64f09d6
Step 4 : EXPOSE 3306
 ---> Running in dfafc09d4a09
 ---> c1c31ffc6b0e
Removing intermediate container dfafc09d4a09
Step 5 : CMD --basedir=/usr
 ---> Running in be7e28c22080
 ---> 312d24038d17
Removing intermediate container be7e28c22080
One or more build-args [VERSION] were not consumed, failing build.
***********

Actual results:

One or more build-args [VERSION] were not consumed, failing build.

Expected results:

Should have given a warning.

Additional info:

This issue is not occurring for docker-latest package version 1.13.1 ( Just giving a warning )

Comment 2 Antonio Murdaca 2017-08-03 13:29:36 UTC
Backported https://github.com/projectatomic/docker/commit/c4618fb6bf4058dcde877f773cfd4afb5abe626c to docker-1.12.6


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