Bug 1109855

Summary: rhel7 dokcer base image fails with stat /usr/share/rhel/secrets/rhel7.repo: no such file or directory
Product: Red Hat Enterprise Linux 7 Reporter: garret.taylor
Component: dockerAssignee: Jack Rieden <jrieden>
Status: CLOSED CURRENTRELEASE QA Contact: Daniel Walsh <dwalsh>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: cgoern, dwalsh, gouyang, ldoktor, lmiksik, lsu, mjenner, ppyy, rrajaram, sauchter
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 11:36:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1113141    

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.