New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to docker build on Linux kernel 4.19 #480
Comments
Sounds like either an issue with overlayfs or dpkg not playing well with overlayfs. A quick search brought me to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836211;msg=17 |
@thaJeztah: Thanks. It seems the bug it's still open: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836211 |
There is an even simpler example:
Any fixes apart from downgrading kernel? |
I posted a comment here about what was discovered and a subsequent comment shows that the default for the overlay config metacopy was switched from The following should do the trick to get you going ...
... remember that you'll likely have to restart your containers. The above isn't permanent, a reboot will reset the value back to You can also try You can also try adding a kernel parameter in grub (or friends) |
There is a fix for the kernel: https://www.spinics.net/lists/linux-unionfs/msg06316.html. Hope it's merged in 4.19.3. |
I'm seeing the same error using |
@ffernand: "You can also try adding a kernel parameter in grub (or friends) overlay.metacopy=N, though I haven't personally tried this last one to see if it works." I just tried it, and it does appear to be working. Antergos (Arch) Linux, in |
what @ffernand proposed: |
Thanks! |
I'm trying to make some changes and running afoul of: docker/for-linux#480 GHC is easy enough to install on alpine, so rather than fight with the Debian based Haskell images, I'll just switch to something that doesn't have this problem.
I am still getting the same error:
on Kernel Version: 4.19.4-1-MANJARO when using overlay2 Storage Driver. When using aufs everything works fine for me. |
I am too still getting the error with 4.19.4-arch1-1-ARCH |
Isn't for me |
Linux 4.19.4-1-MANJARO still getting the error! |
I initially found this on 4.19.1, upgrading to 4.19.4 didn't help. ( |
(Running the command mentioned above did fix it)
|
@GH0st3rs I also upgraded my kernel to
Are you sure you don't have the option |
The problem exists for me on 4.19.4-1-MANJARO with metacopy on. |
It also exists in |
@GH0st3rs It is a partial solution, it works for me right now, but of course, if i reboot the computer i will lose this fix. Waiting for a total solution. |
@SalahAdDin you can make an entry into the kernel command line to make this fix permanent. edit /etc/defaults/grub and find the line that says: change this to: Then, rebuild your Grub config: You'll need root permissions to edit/run the commands so either preface the command with sudo or switch user to the root account. e.g.
And, of course, the tricky part is remembering you did this so you can remove it once this issue is resolved 😜 That will be the part I screw up. |
You should not change
|
@teohhanhui I'd say that's just a matter of preference and not an absolute. The user is better off determining which is better given their application. That is why both options exist. |
From the manual:
https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html |
Issue does appear to be solved in
|
I can also confirm this is now working for me on |
Running into same issue, but proposed solution doesn't work for me as there is no such file as metacopy. Any suggestions on how to proceed?
Also, if I understand correctly, kernel version seems to be 4.9?
|
@ax-slad there is no such feature as metacopy in kernel 4.9, thus the issue you are having is something entirely different. Feel free to file a separate issue. |
Is the overlay.metacopy=N hack still needed as of the newest kernels? I am trying to clean up my kernel command line because it has accreted lots of hacks/fixes that may no longer be necessary... |
@rulatir I've recently removed it and everything's fine on my end. |
I'm getting this issue on kernel version 5.4.0. systool -vm overlay shows that metacopy=N, but I'm still getting: dpkg: error processing archive /tmp/apt-dpkg-install-yt98Qc/225-nvidia-utils-450_450.66-0ubuntu0.18.04.1_amd64.deb (--unpack): |
With kernel:
|
I'm experiencing this on debian kernel 5.9.0-4-arm64. docker.io package: 19.03.13+dfsg3-1 arm64 rootless mode dockerd flags: --storage-driver=overlay --experimental overlay module parameters: Dockerfile to reproduce:
|
@foresto Did you reboot your computer after updating the kernel? |
@SalahAdDin Yes, I know that kernel updates require a reboot to take effect. That is not relevant to this bug in my experience. The bug occurs even after I apply the overlay module parameters I listed above, regardless of whether I apply them manually through sysfs or with a modprobe.d conf file (plus reboot). |
@foresto Every time i get this bug it is because i must reboot the system before to launch Docker after updating the kernel. |
UPDATE: Also when using fuse-overlayfs, same error... Issue still exists for me on
|
it does not work for me in ubuntu 20.04 of gcp instance |
Solution for someone who may need:
|
Expected behavior
Build without error
Actual behavior
When run
docker build -t testing .
this error appears on Linux kernel 4.19:On Linux kernel v4.18 it works. I have tested docker v18.06 and v18.09.
Steps to reproduce the behavior
On a Linux kernel 4.19 use this Dockerfile:
I run
docker build -t testing .
Output of
docker version
:Output of
docker info
:Further information
It's a physical machine with Manjaro Linux based on Arch Linux OS (docker is from Arch Linux and Linux kernel from Manjaro)
The text was updated successfully, but these errors were encountered: