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

docker build -t xbf/hello_nginx

invalid 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 ubuntu
MAINTAINER xbf
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.
listRUN apt-get update
RUN apt-get install -y nginx
COPY index.html /var/www/html
ENTRYPOINT ["/usr/sbin/nginx","-g","daemon off:"]
EXPOSE 80

不知道到底哪有问题

慕函数7399925
浏览 5377回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP