Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker invalid tag value

I'm trying to build the OwnCloud desktop client, for which the Owncloud docs explain that docker should be used:

Assuming you are in the root of the ownCloud Client’s source tree, you
can build an image from this Dockerfile like this:

cd admin/win32/docker
docker build . -t ownCloud-client-win32:<version>

I get an error with this exact command, so following the docker build docs I moved the dot to the end. But then I get the following error:

$ docker build -t ownCloud-client-win32:2.1 .
invalid value "ownCloud-client-win32:2.1" for flag -t: Error parsing reference: "ownCloud-client-win32:2.1" is not a valid repository/tag
See 'docker build --help'.

Why is ownCloud-client-win32:2.1 not a valid tag name?

I then just tried running docker build ., which runs successfully, but then I end up with an untagged image.

Does anybody have any idea how I can solve this?

ps. I don't know if it's important, but the relevant Dockerfile is here.

like image 650
kramer65 Avatar asked Apr 20 '16 10:04

kramer65


People also ask

What is a docker tag?

Docker tags are just an alias for an image ID. The tag's name must be an ASCII character string and may include lowercase and uppercase letters, digits, underscores, periods, and dashes. In addition, the tag names must not begin with a period or a dash, and they can only contain 128 characters.

How do I remove a docker tag?

You can also use rmi command with docker to remove images. It removes (and un-tags) one or more images from the Docker node. If an image has multiple tags, using this command with the tag as a parameter only removes the tag. If the tag is the only one for the image, both the image and the tag are removed.


1 Answers

No uppercase. Try: owncloud-client-win32:2.1

like image 60
user2915097 Avatar answered Sep 18 '22 23:09

user2915097