Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

当我在自己尝试创建编写dockerfile的准备执行build的时候出现了这个问题

Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

问题如图所示,这个问题的意思是Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments 

 这时候我们发现我们的ENV是必须需要两个参数,再看看我们的截图

Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

如图所示我的ENV里面是只有一个参数的,这时候发现其实是我忘记空格了

进行如下修改

Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

这里很明显我将ENV的参数修改成了两个参数

 在从新build的我们自己创建的dockerfile

Error response from daemon: failed to parse mydockerfile-centos: ENV must have two arguments

就成功啦!

 

 

上一篇:2.力扣-数组-数组的遍历2


下一篇:Pandas入门之三:DataFrame