欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

invalid argument “xx:v1.0“ for t: Error parsing reference: “xx:v1.0“is not a valid repository/tag: r

程序员文章站 2022-06-07 22:42:43
...

构建dockerfile的时候报这种提示:

invalid argument “qsmImageName:v1.0” for t: Error parsing reference: “qsmImageName:v1.0” is not a valid repository/tag: repository name must be lowercase

实际上上面说了的很明显了。repository name must be lowercase即需要小写。
把名字从qsmImageName:v1.0改为qsmimagename:v1.0就可以了。

[[email protected] docker]# docker build Dockerfile -t qsmImageName:v1.0 .
invalid argument "qsmImageName:v1.0" for t: Error parsing reference: "qsmImageName:v1.0" is not a valid repository/tag: repository name must be lowercase
See 'docker build --help'.
[[email protected] docker]# docker build -t qsmImageName:v1.0 .
invalid argument "qsmImageName:v1.0" for t: Error parsing reference: "qsmImageName:v1.0" is not a valid repository/tag: repository name must be lowercase
See 'docker build --help'.
[[email protected] docker]# docker build -t qsmimagename:v1.0 .
Sending build context to Docker daemon  2.56 kB
Step 1/4 : FROM busybox
 ---> c7c37e472d31
Step 2/4 : VOLUME /root/docker/share
 ---> Running in 5366dca96ec8
 ---> 86cb9ef8b4e8
Removing intermediate container 5366dca96ec8
Step 3/4 : CMD echo "finished,-------------successful"
 ---> Running in 5a6b891ea104
 ---> 26033eb42e09
Removing intermediate container 5a6b891ea104
Step 4/4 : CMD /bin/bash
 ---> Running in cc74a12606f7
 ---> 8b6e6785d085
Removing intermediate container cc74a12606f7
Successfully built 8b6e6785d085




==正在去BAT的路上修行==