docker build -t xbf/hello_nginx報錯
我輸入這個命令后,就出來這么一個報錯
invalid argument "hello_nginx." for t: Error parsing reference: "hello_ng
inx." is not a valid repository/tag: invalid reference formatSee 'docker build --help'.
FROM ubuntu
MAINTAINER xbf
RUN sed -i 's/archive.ubuntu.com/mirrrosl.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
我的dockerfile里的內容,和視頻里的一樣
2018-12-07
錯誤提示你的tag的名字是無效的