docker build -t xbf/hello_nginx報(bào)錯(cuò)
我輸入這個(gè)命令后,就出來(lái)這么一個(gè)報(bào)錯(cuò)
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里的內(nèi)容,和視頻里的一樣
2018-12-07
錯(cuò)誤提示你的tag的名字是無(wú)效的