Create a virtual machine in a physical machine and enter the container. When executing the command, it prompts that the permissions are insufficient.

1. Specific scenario

After creating the container on the server, run -it enters the container and executes the command, but it prompts that the permissions are insufficient, as shown belowInsert image description here

2. Solution

After consulting the information, we found that the specific reason may be that the security module selinux has disabled permissions, so when we start the container, we add privileges to the container and add the --privileged=true parameter, as shown below

docker run -it --privileged=true image.cestc.cn/iaas_pub/modelscope:base-cuda11.3-python3.7

Guess you like

Origin blog.csdn.net/qq_45808700/article/details/134071932