apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Failed when entering docker container

Open redpanda3 opened this issue 2 years ago • 1 comments

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 on master 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.

redpanda3 avatar Jul 28 '22 15:07 redpanda3

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/

qilinhu avatar Aug 01 '22 08:08 qilinhu

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 avatar Aug 24 '22 14:08 redpanda3

@redpanda3 glad your problem is solved : )

daohu527 avatar Aug 24 '22 14:08 daohu527

👍

redpanda3 avatar Aug 24 '22 14:08 redpanda3