apollo
apollo copied to clipboard
Failed when entering docker container
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 18.04): Ubuntu 22
- Apollo installed from (source or binary): gitee
- Apollo version (3.5, 5.0, 5.5, 6.0): apollo 6.0
-
Output of
apollo.sh config
if onmaster
branch: Hardware: nvidia rtx-2070
Steps to reproduce the issue:
-In the step, 'bash docker/scripts/dev_into.sh'
Supporting materials (screenshots, command lines, code/script snippets):
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "proc" to rootfs at "/proc": mount proc:/proc (via /proc/self/fd/7), flags: 0xe: operation not permitted: unknown
chmod 777 -R /proc, doesn't work.
Hi!@redpanda3 I think the reason for the failure may be that the current user is not in the docker group.You can try the following method to see if it can solve your problem.
sudo gpasswd -a $USER docker
newgrp docker
This is the official configuration process of docker, I hope it can help you.
https://docs.docker.com/engine/install/linux-postinstall/
Hi!@redpanda3 I think the reason for the failure may be that the current user is not in the docker group.You can try the following method to see if it can solve your problem.
sudo gpasswd -a $USER docker newgrp docker
This is the official configuration process of docker, I hope it can help you.
https://docs.docker.com/engine/install/linux-postinstall/
Dear @qilinhu ,
Sorry for the delay. The actual reason is sort of complicated, the solution, in short, is to switch to ubuntu20.04 or ubuntu18.04, and go over the installation of cuda, cudnn, docker, etc... again.
It's not actually docker's reason.
Thanks for all @qilinhu @daohu527, redpanda
@redpanda3 glad your problem is solved : )
👍