Xe / furry-happiness

A proof of concept dockerfile that uses user mode linux
MIT License
52 stars 9 forks source link

Checking that ptrace can change system call numbers...ptrace: Operation not permitted #1

Closed Lakshmipathi closed 5 years ago

Lakshmipathi commented 5 years ago

Hi ! Thanks for the tutorial and dockerfile. Any thoughts on why this fails without passing --privileged to docker? It says something -s option though.

 docker run --rm -it xena/docker-uml
[WARN  tini (9)] Tini is not running as PID 1 and isn't registered as a child subreaper.
Zombie processes will not be re-parented to Tini, so zombie reaping won't work.
To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.
Core dump limits :
    soft - NONE
    hard - NONE
Checking that ptrace can change system call numbers...ptrace: Operation not permitted
check_ptrace : expected SIGSTOP, got status =
AkihiroSuda commented 5 years ago

--cap-add SYS_PTRACE? (unless using Docker 19.03+ with kernel 4.8+)

Lakshmipathi commented 5 years ago

Okay. Let me upgrade to above version and check the results.

Lakshmipathi commented 5 years ago

With Docker 19.03.3 and Kernel 4.19.0 I don't encounter this problem. Its working fine.