You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, yesterday I enabled Buildkit by default on a docker builder VM running a recent Arch Linux – one job failed in the night.
That job was building an Ubuntu 16.04 image, adding extra repositories. A similar job for an Ubuntu 18.04 image ran just before that on the same machine. The repository looks something like this:
The Ubuntu 16.04 build now got the repo.list from the Ubuntu 18.04 directory somehow (which contains bionic instead of xenial). Running several prune commands or even deleting /var/lib/docker didn't help and I was able to reproduce this on exactly one other machine, but not on another.
That machine also had the repository already cloned. In the end, it got fixed by touching the repo.list files or deleting and recreating the local repository, but it took me some hours to get to that point.
Edit: I proceeded touching both repo.list files on the third machine with a specified date, so they got the same modification time as well. Now I am able to reproduce the issue here as well. However, the issue only appears when running cd $dir && docker build ., not when running docker build $dir.
Here's a demonstration script: buildkit-borked.tar.gz. This should (and does on my machines) produce a "xenial" output for Ubuntu 18.04 in the first build, but not in the other two.
Both (or all three) tested systems were running this configuration:
So, yesterday I enabled Buildkit by default on a docker builder VM running a recent Arch Linux – one job failed in the night.
That job was building an Ubuntu 16.04 image, adding extra repositories. A similar job for an Ubuntu 18.04 image ran just before that on the same machine. The repository looks something like this:
The Ubuntu 16.04 build now got the
repo.list
from the Ubuntu 18.04 directory somehow (which containsbionic
instead ofxenial
). Running severalprune
commands or even deleting/var/lib/docker
didn't help and I was able to reproduce this on exactly one other machine, but not on another.That machine also had the repository already cloned. In the end, it got fixed by
touch
ing therepo.list
files or deleting and recreating the local repository, but it took me some hours to get to that point.Edit: I proceeded
touch
ing bothrepo.list
files on the third machine with a specified date, so they got the same modification time as well. Now I am able to reproduce the issue here as well. However, the issue only appears when runningcd $dir && docker build .
, not when runningdocker build $dir
.Here's a demonstration script: buildkit-borked.tar.gz. This should (and does on my machines) produce a "xenial" output for Ubuntu 18.04 in the first build, but not in the other two.
Both (or all three) tested systems were running this configuration:
The text was updated successfully, but these errors were encountered: