执行 cat /etc/passwd 2 .创建容器的 -u 的user_name 改为id(本例是1002) docker run -it -u user_name --name container_name -d image_name