---
title: "docker创建镜像时报错is not a valid repository/tag"
author: "onlysomeone"
date: "2016-12-01T22:30:55Z"
tags: []
categories: ["企业架构"]
slug: "docker-is-not-a-valid-repository-tag"
draft: false
lastmod: "2016-12-01T22:40:49Z"
id: 2342374
url: "https://onlysomeone.iteye.com/blog/2342374"
---

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，将大写改为小写，创建成功。

坑啊，文档中并没有哪里要求只能是小写。