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 1109855 - rhel7 dokcer base image fails with stat /usr/share/rhel/secrets/rhel7.repo: no such file or directory
Summary: rhel7 dokcer base image fails with stat /usr/share/rhel/secrets/rhel7.repo: n...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jack Rieden
QA Contact: Daniel Walsh
URL:
Whiteboard:
Depends On:
Blocks: 1113141
TreeView+ depends on / blocked
 
Reported: 2014-06-16 13:45 UTC by garret.taylor
Modified: 2019-03-06 01:10 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-26 11:36:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description garret.taylor 2014-06-16 13:45:14 UTC
Description of problem:

Unable to run the rhel7 docker base image.
Error:  annot start container ...: stat /usr/share/rhel/secrets/rhel7.repo: no such file or directory

System is not registered with red hat subscription manager.
Update are applied from a custom repository.

Version-Release number of selected component (if applicable):
RHEL 7.0
rehl7:latest from 

How reproducible:


Steps to Reproduce:
1. Install RHE7 from .iso
2. Install docker by downloading docker package from Red Hat web site
3. Download and load (docker load -i ...) the rhel7 base image from Red Hat.
4. Start container:  docker run -ti rhel7:latest /bin/bash
5. Error as above.

Actual results:
conatiner fails to sart

Expected results:
conatiner starts in interactive mode

Additional info:

Comment 1 garret.taylor 2014-06-16 13:49:35 UTC
Same applies to ubuntu images.
#dokcer pull ubuntu
#docker run -ti ubuntu:latest /bin/bash

Error as above

Comment 3 garret.taylor 2014-06-16 16:39:08 UTC
base image will run on RHEL 6.5 host with latest docker.
This RHEL 6.5 host is registered with a RHN satellite.

Comment 4 Daniel Walsh 2014-06-23 11:47:45 UTC
I am not sure what you are saying.  

docker running a ubunto image on rhel7 fails, without entitlement?

Docker running rhel7 image on rhel7 fails without entitlement?  Which could be argued makes sense.

Docker rhel7 image works on a RHEL6.5 host with entitlement?

Comment 6 Daniel Walsh 2014-06-27 10:57:56 UTC
This means the system was not entitled.  

It is a bug in that the system should not show this as an error, but should continue on, and allow you to run images that do not require entitlement. If you entitle the machine, all images should start working.

Comment 7 Matthew Heon 2014-06-27 13:38:39 UTC
Short-term workaround to avoid this bug is to create an empty file at /etc/yum.repos.d/redhat.repo. This will permit normal operation of Docker.

I'm working on a patch to fix this right now, and the issue should be fixed in docker-1.0

Comment 8 Daniel Walsh 2014-07-15 17:08:08 UTC
Is this fixed in docker-1.0.0-10.el7.x86_64?

Comment 13 Daniel Walsh 2014-08-04 19:12:55 UTC
Can you try this on 

rpm -q docker
docker-1.1.2-5.el7.x86_64


or later.

Comment 15 Daniel Walsh 2014-08-05 12:20:48 UTC
Matthew are we missing your patch?

Comment 20 Daniel Walsh 2014-08-08 13:04:34 UTC
 docker-1.1.2-9.el7 Now has this patch.

Comment 21 Peng Yong 2014-08-10 08:37:46 UTC
how can i get docker-1.1.2-9.el7 now?

Comment 22 Guohua Ouyang 2014-08-11 07:19:46 UTC
tested it fixed on docker-1.1.2-9.el7.

Comment 23 Lukáš Doktor 2014-08-11 08:28:55 UTC
Yep, works fine with docker-1.1.2-9.el7.x86_64.


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