-
Notifications
You must be signed in to change notification settings - Fork 17
sudo inside dockerfile cause error "sudo: effective uid is not 0" for arm platform #213
Comments
@iav I don't think it has something to do with this action but GitHub runner instead. See moby/moby#36730 (comment) for more info. Also have you tried with standard |
How can I use standard docker build for another architecture on builder? About a "nosuid" — I try to workaroud it already, add section with special fs for /var/lib/docker. Without result.
|
See https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
Don"t think that's the right way to do it. You should ask on https://github.com/actions/virtual-environments. |
As mentioned multiarch/alpine#32 (comment) problem was wrong flags in
its's state after |
@iav Will check this out, thanks for your input! |
@iav Can you try with |
This run https://github.com/iav/test3/runs/746356197?check_suite_focus=true |
@iav Nice! I have added a Dockerfile with sudo to test this behavior and it seems to work. |
@iav This is fixed through v3.1.0 / v3 |
Behaviour
Trying to build container with command RUN sudo not from root user causes error
Steps to reproduce this issue
inside build script set user to non root with right do sudo, and run sudo:
Expected behaviour
just work, as on my laptop
Actual behaviour
error
Configuration
https://github.com/iav/test3/
https://github.com/iav/test3/runs/745735579?check_suite_focus=true#step:6:1401
paste your YAML workflow file here and remove sensitive data
https://github.com/iav/test3/blob/master/.github/workflows/main.yml
dockerfile: https://github.com/iav/test3/blob/master/Dockerfile
Logs
The text was updated successfully, but these errors were encountered: