docker run failed for Operation not permitted
yanzmgit opened this issue · 1 comments
yanzmgit commented
As run the docker, it failed unexpectedly.
Long story for short:
(1) command
docker run --privileged \
-v ~/.config/jd4/config.yaml:/root/.config/jd4/config.yaml \
-v ~/.cache/jd4:/root/.cache/jd4 \
vijos/jd4
(2)error
File "/root/downloads/yan/jd4/jd4/sandbox.py", line 121, in _handle_child
create_namespace()
File "jd4/_sandbox.pyx", line 35, in jd4._sandbox.create_namespace
write_text_file('/proc/self/uid_map', '1000 {} 1'.format(host_euid))
File "/root/downloads/yanzm/jd4/jd4/util.py", line 44, in write_text_file
f.write(text)
PermissionError: [Errno 1] Operation not permitted
(3)what have been done
I checked the /proc/self , I found the dir is not permitted to write。
I tried use root or common user, the same error occured.
thanks for any help.
yanzmgit commented
i found this issue is about linux kernel version. when i run the same command at a machine of linux 4.10 ,the problem disappers