Skip to content
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

runc with terminal true fails to start the terminal #1538

Open
rajasec opened this issue Jul 30, 2017 · 1 comment
Open

runc with terminal true fails to start the terminal #1538

rajasec opened this issue Jul 30, 2017 · 1 comment

Comments

@rajasec
Copy link
Contributor

rajasec commented Jul 30, 2017

When I try to runc, it gave the following error on sh.
sudo ./runc run test
/bin/sh: 0: 3: Invalid argument
Currently I have changed the limits to 10.
"rlimits": [
{
"type": "RLIMIT_NOFILE",
"hard": 10,
"soft": 10
}
],
2 things which I observed:

The moment I changed to hard & soft to 11, things expected to work. Able to enter to the sh shell.
One more observation, the failure happened only for sh, when I change to bash, it works

When the failure happens, I tried via exec command, same error
/bin/sh: 0: 3: Invalid argument

@cyphar
Copy link
Member

cyphar commented Aug 1, 2017

I presume that it's because sh opens that many files, and so if you limit it enough it won't work? I'm not exactly sure why it gives you an EINVAL rather than EBUSY but this looks to me like it's working as-intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants