Docker Community Forums

Share and learn in the Docker community.

Why do I get "Not a valid repository/tag" for my image name?


(Davidmichaelkarr) #1

I don’t know whether my problem is with docker or with the docker-maven-plugin. I’ve tried to ask about this with an issue in the docker-maven-plugin issues, but I’m not getting much of a response.

My Maven POM is so far very simple:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>orderProcessingDashboard</groupId> <artifactId>ordersImage</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <build> <plugins> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <configuration> <registryUrl>http://<enterprise registry host and port></registryUrl> <dockerDirectory>src/docker</dockerDirectory> <imageName>ordersImage</imageName> </configuration> </plugin> </plugins> </build> </project>

The “” represents what it sounds like. An internal docker registry behind the firewall.

My current Dockerfile (at “src/docker” is even simpler than the POM:
FROM tomee:8-jdk-7.0.0-webprofile

I’ll obviously need more in here eventually, but I’m building this incrementally.

When I run “mvn docker:build” according to the instructions for “docker-maven-plugin”, I get the following in the system log:
Aug 13 09:23:23 wacdtl01dk068x dockerd: time="2016-08-13T09:23:23.364116278-07:00" level=error msg="Handler for POST /build returned error: Error parsing reference: \"ordersImage\" is not a valid repository/tag"

Again, this may be a problem with the docker-maven-plugin, but does someone have some guess of what my problem might be? My current sample is pretty similar to an example in the docker-maven-plugin documentation.


(Benderchan) #2

Case sensitive.There is a ‘I’ in your Image Name : ‘ordersImage’.