-
Notifications
You must be signed in to change notification settings - Fork 229
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
sh: write error: Invalid argument - Centos 7 #100
Comments
One possibility is your kernel Does following command without
Because Here is the document on kernel 4.10. |
Here is the binfmt_misc document for kernel 3.10. There is no |
Here is the alternative workflow for your environment possibly.
or
Above commands are just to add binfmt_misc files to your host environment. Then for example if you want to run
|
Thanks those steps worked. But the situation sucks. I'd prefer not to have to include the binary in the docker images and it looks like my only option is to update to Centos 8 which is currently kernel 4.18.0 and does in fact work as expected. |
Update for anyone who really wants this to work on Centos 7: |
There is an alternative way not to include the binary in the docker images for your case. That is to copy the binary
|
Hi,junaruga! I repeat your steps, but got an error at the last step. Error detail:
My device is a virtual machine,operating system info:
|
|
@wanganhong Sorry when I was checking past notification emails which I was mentioned in, I found this ticket's notification email.
Sorry I have no idea about the message.
Sorry my mistake. The
|
@wanganhong Or you might be able to try the way @zyystudio shared. I have not checked the links. But thanks for the info! |
@junaruga Excuse me,I want to ask how to use command docker build with the same issue.
and Dockerfile is like
|
/kind bug
Description:
Similar error to #38, but different circumstances.
Operating system info:
Then when I run this as root:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
I get:
What am I missing? This command works on my other linux mint distro, but my CI nodes are running Centos7.
The text was updated successfully, but these errors were encountered: