Bug 1451016
| Summary: | unable to configure the Docker daemon due to missing /etc/docker/daemon.json: [ENOENT] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Ed Santiago <santiago> |
| Component: | rhel7-container-engine-docker | Assignee: | Jhon Honce <jhonce> |
| Status: | CLOSED WONTFIX | QA Contact: | Martin Jenner <mjenner> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.4 | CC: | bbaude, ddarrah, dwalsh, gscrivan, jhonce, santiago, smilner |
| Target Milestone: | rc | Keywords: | Extras |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-01-15 07:35:59 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: | 1451375 | ||
| Bug Blocks: | |||
This should have been fixed as of rhel7-container-engine-docker-1.12-6 https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=557100 That's the one I'm reporting:
# atomic images version brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/container-engine:latest
IMAGE NAME VERSION IMAGE ID
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/container-engine:latest 1.12-6 abe2a60f2d1a
To double check I pulled the latest from brew and installed it with atomic (checkout from git) and it worked. I'm wondering if the file copy feature has not landed in RHEL yet. Ed, What version of atomic did you use and what arguments did you use to install the system container? Giuseppe, Could this be related to an old version of atomic that doesn't copy files to the host? # rpm -q atomic
atomic-1.16.5-1.el7.x86_64
# atomic --version
1.16.5
# atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
Version: 7.3.4-1 (2017-04-20 22:00:30)
Commit: d6c7a5639cdeb6c21cf40d80259d516d047176e35411c8684cae40a93eedbed0
OSName: rhel-atomic-host
The feature we are using was merged after the 1.16.5 release.
(NEWER)
commit 430961af37b26efd6df7334474a4ed76915746be
Author: Giuseppe Scrivano <gscrivan>
Date: Fri Nov 25 12:04:22 2016 +0100
syscontainers: allow to copy arbitrary files to the host
Copy the /exports/hostfs/ to the host file system.
<snip>
commit 241adc115aa6e7975e180c3d97e2e6be4bf38325
Author: Daniel J Walsh <dwalsh>
Date: Tue Mar 21 15:05:34 2017 -0400
Bump to v1.16.5
(OLDER)
The oldest release that the copy feature is part of is 1.17.0:
commit 5378d20c0308af63745ec1ec52e8de684daaf927
Author: Daniel J Walsh <dwalsh>
Date: Thu Apr 20 11:45:50 2017 -0400
There are a number of ways I can see fixing this:
1. Make a later version of atomic available for the distribution
2. Require the user to create an /etc/docker/daemon.json file (docs and set in tag)
3. Backport the feature to 1.16.5 (least favorite by far)
Adding NEEDINFO on Giuseppe as I feel like he'll have good insight.
yes this depends on a newer feature of atomic that is not in RHEL yet. Adding Dan to check what is the best way to address this. I guess it might be easier to cut a new atomic release. Yes we should cut a new atomic release. Brent was planning on doing this. I believe this should be re-testable at this point. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
I hope this is the right component for this. 'systemctl start docker' fails because of missing /etc/docker/daemon.json : May 15 14:47:22 esm-rhelah73-1.localdomain runc[13728]: time="2017-05-15T14:47:22Z" level=fatal msg="unable to configure the Docker daemon with file /etc/docker/daemon.json: open /etc/docker/daemon.json: no such file or directory\n" # atomic images list REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE TYPE brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/container-engine latest abe2a60f2d1a 2017-05-15 14:45 ostree Workaround: # echo '{}' >/etc/docker/daemon.json # systemctl start docker ...all ok I suspect this needs to be handled in the system container packaging, but I have no actual clue how that works.