-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
buildah isn't working in ubuntu-20.04 (version: 20210330.1) #3080
Comments
Hi @urfin78!
|
Building and using the old version on the same runner seems to work:
|
@urfin78 great, let's wait for an answer in containers/buildah#3120 |
Same problem for me, the workaround posted above works in my workflows. |
@urfin78 @kpfleming this workaround should be much faster |
The Ubuntu-20.04 runner could be modified similarly to the workaround mentioned redhat-actions/buildah-build#45 (comment).
edit: Looks like this is the script that would have to change edit: storage.conf not containers.conf |
@urfin78 I'm going to close the issue since the problem is external. Please feel free to contact us if you have any concerns. |
@miketimofeev If it's expected behaviour from the buildah side, that container configuration should be |
I agree with @urfin78 that this should be fixed in the virtual environment. If I had this issue on a system under my control I would edit Since Actions users cannot make persistent changes on the GitHub environments, they have to edit that file in every workflow that uses buildah. And there's no way for them to know how to do that without finding this issue. |
it is unpredictable how other tools and containers will be affected If we patch |
@maxim-lobanov Setting this option is also recommended for rootless setups here https://github.com/containers/storage/blob/master/docs/containers-storage.conf.5.md But surely it has to be tested properly. |
@urfin78 in that case maybe it's a better solution to install |
@miketimofeev It was just a guess from reading one of issues regarding the problem: containers/buildah#1745 (comment) |
As far as I can tell, fuse-overlayfs is already installed on the ubuntu runners. Installing fuse-overlayfs first as suggested may work and is absolutely worth a try. Otherwise, the storage.conf can be edited as per #3080 (comment) to set it as the default. |
Nope, it didn't help, the option is still disabled:
|
FWIW, we added a workaround to https://github.com/redhat-actions/buildah-build so if you use our action, buildah will work without the steps above. |
Due to a recent change in Buildah and a configuration error in the Github virtual environment, Buildah cannot mount layers in rootless mode. This patch fixes the problem by explicitly specifying the correct mount program to use, as suggested in [this bug report](actions/runner-images#3080).
Due to a recent change in Buildah and a configuration error in the Github virtual environment, Buildah cannot mount layers in rootless mode. This patch fixes the problem by explicitly specifying the correct mount program to use, as suggested in [this bug report](actions/runner-images#3080).
Description
The latest 1.20.0 release of buildah isn't working inside the virtual environment from the github-actions. Maybe it's related to this
buildah issue: containers/buildah#3120
Area for Triage:
Containers
Question, Bug, or Feature?:
Bug
Virtual environments affected
Image version
20210330.1
Expected behavior
Image build with buildah suceeds.
Actual behavior
Image build with buildah fails with
Repro steps
Run the following workflow with the simplest Dockerfile of your choice:
The text was updated successfully, but these errors were encountered: