docker – 无法找到root用户:passwd文件中没有匹配的条目
我有一个运行Docker容器,其中包含以下内容:
docker exec -it cc58908a8dc2 /bin/bash
我之前在其他容器上运行此命令,它运行得很好.但是,现在我遇到了这个问题:
unable to find user root: no matching entries in passwd file
我的Dockerfile具有以下内容:
# We will be running our Spark jobs as `root` user.
USER root
# Working directory is set to the home folder of `root` user.
WORKDIR /root
任何可能导致这种情况的想法?