containers / containers/crun

OCI runtime error: crun: mount `proc` to `/proc`: Too many levels of symbolic links

Open
#1,121 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4.1k
Forks
444
Avg merge
1d 18h
Merged PRs (30d)
43

Description

(Continuation of discussion from https://github.com/containers/crun/issues/1115 )

yes, that seems like a different error and one I've never seen before.

Do you see the same error if you run something like `$ sudo unshare -muinp -f --mount-proc=/proc echo hello`?

Could you strace the command to see where it fails?

`$ sudo strace -Z -f -s 1000 podman run -tid --net host busybox sh`

_Originally posted by @giuseppe in https://github.com/containers/crun/issues/1115#issuecomment-1381481362_

```
chronos@localhost /usr/local/lib/crew/packages (master *%|SPARSE=)$ sudo unshare -muinp -f --mount-proc=/proc echo hello
hello
```

```
sudo podman run -tid --net host busybox sh
Your kernel does not support pids limit capabilities or the cgroup is not mounted. PIDs limit discarded.
Error: OCI runtime error: crun: mount `proc` to `/proc`: Too many levels of symbolic links
```

```
sudo strace -Z -f -s 1000 --output=/usr/local/tmp/crun_strace.output.txt podman run -tid --net host busybox sh
Your kernel does not support pids limit capabilities or the cgroup is not mounted. PIDs limit discarded.
Error: OCI runtime error: crun: mount `proc` to `/proc`: Too many levels of symbolic links
```
[crun_strace.output.txt](https://github.com/containers/crun/files/10412752/crun_strace.output.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.