docker创建镜像时报错is not a valid repository/tag

docker build -t study-javaExercise-web .
invalid argument "study-javaExercise-web" for t: Error parsing reference: "study-javaExercise-web" is not a valid repository/tag
See 'docker build --help'.
之前以为,study-javaExercise-web 名称过长,缩短后创建成功。
几经尝试,真正原因是名称中带了大写的E,将大写改为小写,创建成功。
坑啊,文档中并没有哪里要求只能是小写。
 

猜你喜欢

转载自onlysomeone.iteye.com/blog/2342374