测试人社区

docker实战---dockerfile文件启动报错unable to find user ROOT: no matching entries in passwd file

dockerfile
FROM selenium/node-chrome-debug:3.7.1-beryllium

USER ROOT

RUN apt-get update
&& apt-get -y install ttf-way-microhei ttl-way-zenhei
&& apt-get clean

root@lm-virtual-machine:~/grid# docker build -t localhost:5000/leiminggrid:v1 .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM selenium/node-chrome-debug:3.7.1-beryllium
—> 115068ee4110
Step 2/3 : USER ROOT
—> Using cache
—> 8c5bc48b67df
Step 3/3 : RUN apt-get update && apt-get -y install ttf-way-microhei ttl-way-zenhei && apt-get clean
—> Running in a0b49ab4e1f7
unable to find user ROOT: no matching entries in passwd file
启动路径:
root@lm-virtual-machine:~/grid# pwd
/root/grid

查了一下,说是docker的bug,官方给的解决方法就是重启docker,尝试下重启docker服务或者重启一下机器吧.
参考链接

好的~不是我localhost:5000/leiminggrid:v1 .这个路径的问题吧 重启docker无效