inclavare-containers: Failed to start container(follow the guide )
Guide as building-occlum-container-image or alibabacloud guide
Log:
root@iZbp119zf7ob6si5ai97i0Z:~/rune_workdir/ack# docker run -it --rm --runtime=rune -e ENCLAVE_TYPE=intelSgx -e RUNE_CARRIER=occlum -e ENCLAVE_RUNTIME_LOGLEVEL=debug -e ENCLAVE_RUNTIME_PATH=/opt/occlum/build/lib/libocclum-pal.so -e ENCLAVE_RUNTIME_ARGS=occlum_instance occlum-app:0.1
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:309: starting container process caused: process_linux.go:629: enclave init caused:: unknown.
root@iZbp119zf7ob6si5ai97i0Z:~/rune_workdir/ack#
Environment
root@iZbp119zf7ob6si5ai97i0Z:~# uname -a
Linux iZbp119zf7ob6si5ai97i0Z 4.15.0-145-generic #149-Ubuntu SMP Fri May 28 15:52:34 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@iZbp119zf7ob6si5ai97i0Z:~#
root@iZbp119zf7ob6si5ai97i0Z:~# hostnamectl
Static hostname: iZbp119zf7ob6si5ai97i0Z
Icon name: computer-vm
Chassis: vm
Machine ID: 20210609160601323310216165330672
Boot ID: c8ce5e62ac4740a09fdf414f0d0882cb
Virtualization: kvm
Operating System: Ubuntu 18.04.6 LTS
Kernel: Linux 4.15.0-145-generic
Architecture: x86-64
root@iZbp119zf7ob6si5ai97i0Z:~#
Is there any idea? Thank you in anticipation
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 33
@hustliyilin @haosanzi I got it, Thank you again. I may learn more about it.
@haosanzi Thanks a lot,. Finally, i can run the demo in my machine by change the occlum-builder container version from 0.24.2-ubuntu18.04 to 0.21.0-ubuntu18.04. So, they are may incompatible with each other, i should’t build the occlum package in occlum/occlum:0.24.2-ubuntu18.04 and run it in the machine with occlum pal lib 0.21.0?
@zhuxiaolong-g Thanks for your question. So far, my environment cannot reproduce your problem. I will try to reproduce your environment and problems. If I make progress, I will let you know as soon as possible.
@zhuxiaolong-g
Aout the error: [ERROR] occlum-pal: realpath returns ENOENT (line 76, file src/pal_api.c) Please make
"cwd": "/",
inconfig.json
(About line 16). and rerunrune run oc-app
to see if it is successful.