只需以宿主机的普通用户运行即可。docker run --user $(id -u ${USER}):$(id -g ${USER}) -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group ...