为了账号安全,请及时绑定邮箱和手机立即绑定

dockerfile的脚本内容输入后,docker build -t xbf/hello_nginx这条命令输入后报错,求解

dockerfile的脚本内容输入后,docker build -t xbf/hello_nginx这条命令输入后报错,求解

慕函数7399925 2018-12-05 15:02:05
docker build -t xbf/hello_nginxinvalid argument "xbf/hello_nginx." for t: Error parsing reference: "xbf/hello_nginx." is not a valid repository/tag: invalid reference formatSee 'docker build --help'.我的脚本如下FROM ubuntuMAINTAINER xbfRUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.listRUN apt-get updateRUN apt-get install -y nginxCOPY index.html /var/www/htmlENTRYPOINT ["/usr/sbin/nginx","-g","daemon off:"]EXPOSE 80不知道到底哪有问题
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 5376 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信