-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Got starting container process caused "process_linux.go:301: running exec setns process for init caused \"exit status 40\"": unknown. from time to time #1740
Comments
Have you enabled user namespace support on your machine? User namespaces are required to create unprivileged containers, and I don't think they're enabled by default on that version of centos. |
what does |
@frezbo it returns: |
@teddyking I checked this:
BTW, if user namespace is disabled, should it always fail or just for sometimes. |
@cui-liqiang make sure to go through this: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/getting_started_with_containers/index#user_namespaces_options the kernel boot parameter and the kernel para |
Hi @frezbo My docker daemon options:
|
hmm I'm not sure, I thought you were using runc natively. |
The error means that |
Does this look right? |
Oh, you're using CentOS 7.2! In older RHEL kernel versions they deny creation of mount namespaces inside a user namspace because of an out-of-tree patch. See #1513 -- apparently RHEL 7.5 will fix this. In fact, looking at this again, this looks like a duplicate of #1513 -- while the issue is that you cannot run Docker with
And whether this command works:
However, this part of the bug report still doesn't make sense to me (the above explanation would make containers always fail to start, I don't understand how it could be probabilistic):
|
@cyphar Neither works.(The output characters: "failed, invalid arguments")
|
Sorry, I forgot to ask for the contents of |
|
facing same error on |
It turns out not a problem of docker. After I periodically clean the page cache by running |
I use gitlab CI to build my own App image on gitlab runner, and I get the same problem. Thank you for your answer and I run |
For me it was a memory allocation error as described here - https://serverfault.com/questions/236170/page-allocation-failure-am-i-running-out-of-memory Mine was a 24GB RAM server with over 15GB allocated to page cache and only 600-800MB of free RAM. I noticed my docker failed to start containers if the "free" memory would drop below 1GB, so I set my
now it will allocate less to page cache and I won't have to continuously purge it with Hope it helps anyone. EDIT: Forget the above, it's a dirty hack which might lead to other issues on the system. I restarted the server over a month ago. The restarted had reset the fragmented memory and there hasn't been any issues since. |
We had the same error on a Virtuozzo-based system. In our case, it apparently was related to the number of NETFILTER (iptables) rules – raising the value of |
we have been fighting an issue where this was the main error we observed. Please look at the total system memory vs |
Hey, we have that issue as well and its related to kernel memory fragmentation in Centos/RHEL:
|
@jeschaF - do you have a remediation at this time ? or do you reboot the host as well ? |
having the same issue as given below: :/home/ubuntu# docker run --runtime=nvidia --rm nvidia/cuda:9.0-base nvidia-smi |
Most of this errors that I found are related to bad mounting of volumes. in my case I was mounting a file to a folder
|
I'm using minikube witht he same issue. I tried ssh into minikube and tried this command bust was denied even with sudo. Any workarounds here that you would recommend? |
I was sharing folders and forgot the slash at the end |
Can anyone please help me how do I stop cleaning cache once after running this |
os:
centos 7.2
uname -a:
Linux iZ2ze43t8c42mqytqholpuZ 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
docker -v
Docker version 17.12.0-ce, build c97c6d6
docker-runc -v
runc version 1.0.0-rc4+dev
commit: b2567b3
spec: 1.0.0
When I run
docker run
ordocker build
, the following error appears from time to time. The Probability is around 5% .Any clues?
The text was updated successfully, but these errors were encountered: