Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: # docker --debug=true build -t fedora:24 . Sending build context to Docker daemon 315.1 MB Step 1 : FROM scratch ---> Step 2 : MAINTAINER Adam Miller <maxamillion> ---> Using cache ---> dd64eef9ba1f Step 3 : ADD fedora-24-20160602.tar / Untar re-exec error: exit status 1: output: operation not supported Version-Release number of selected component (if applicable): docker-1.11.1-5.git9dea74f.fc25.x86_64 How reproducible: Always Steps to Reproduce: 1. Download https://kojipkgs.fedoraproject.org//work/tasks/111/14350111/Fedora-Docker-Base-24-20160602.n.0.x86_64.tar.xz 2. tar -xvJf Fedora-Docker-Base-24-20160602.n.0.x86_64.tar.xz 3. 87fab38d658cbbd99872ce3c817dd7e11d9274916dd9f40601b91ca0c9bfb1c5/layer.tar fedora-24-20160602.tar 4. xz --compress fedora-24-20160602.tar 5. cat > Dockerfile <<-EOF FROM scratch MAINTAINER Adam Miller <maxamillion> ADD fedora-24-20160602.tar / EOF 6. docker build -t fedora:24 . Additional info: This has been discussed upstream: https://github.com/docker/docker/issues/20331 It works if you build from upstream sources: https://github.com/docker/docker/issues/20331#issuecomment-223677761 and confirmed to work
For completeness and as a reminder to me while testing - this is also working if we build projectatomic/docker locally.
looks like 1.10.3 is working fine though: $ docker build -t fedora:24 . Sending build context to Docker daemon 268.9 MB Step 1 : FROM scratch ---> Step 2 : ADD fedora-24-20160602.tar.xz / ---> 88499dae83f5 Removing intermediate container 73352c250138 Successfully built 88499dae83f5 $ docker run -ti fedora:24 bash [root@45f1a3d56623 /]# cat /etc/os-release NAME=Fedora VERSION="24 (Twenty Four)" ID=fedora VERSION_ID=24 PRETTY_NAME="Fedora 24 (Twenty Four)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:24" HOME_URL="https://fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=24 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=24
Seems strange that one of our patches would cause problems here?
The failure with docker 1.11.1 can be legit though (much stuff going on with runc and containerd integration and we setup containerd differently than upstream so it might be this). I've built 1.11.2 for rawhide just yesterday also. I'd like Adam to test this out with 1.10.3 from updates-testing in Fedora 23 (or with Fedora 24 which already has 1.10.3). I'll take a closer look in rawhide
On a F24 box - building docker 1.11.2 from projectatomic/docker branch docker-1.11 works fine. I'm gonna test with Rawhide soon.
Found it - the "--selinux-enabled" flag is causing the Untar re-exec error: exit status 1: output: operation not supported This is indeed the only difference between upstream unit file and us :) I'm going to look deeper into fixing this.
For some reason, Selinux isn't complaining at all - it's just the "--selinux-enabled" flag which is causing this!
Fix for Fedora https://github.com/projectatomic/docker/pull/165
The problem here is not an SELinux denial. The problem is the kernel does not allow processes to assign contexts via INODE if the mount point uses a context mount. Since docker does a context mount when using devicemapper and selinux together, the tar attempting to write an SELinux label is being blocked by an ENOTSUPP error. Docker should ignore this error and write the file. The patch above basically does this.
FWIW, this appears to be resolved in Fedora 23, 24 and Rawhide .... it might still be an issue upstream though, just wanted to report that builds that were broken for me are no longer broken.
awesome, upstream fixed this also (it was already fixed tbh)
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.