-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on image names with more than three path elements #694
Labels
Comments
Content of my pom.xml: <?xml version="1.0" encoding="UTF-8"?>
<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>com.thermofisher.cloud</groupId>
<artifactId>docker-fabric8-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.19.0</version>
<configuration>
<images>
<image>
<name>some.docker.repository.com/user/path1/path2/path3/my-test-image</name>
<build>
<dockerFileDir>.</dockerFileDir>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>build</id>
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> Content of src/main/docker/Dockerfile:
|
You are right multiple segments in the name are allowed these days. Going to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If my docker image has more than three path elements (e.g. "some.docker.repository.com/user/path1/path2/path3/my-test-image"), I get the following error:
Note that the regex above seems to support an optional host name
followed by a single name component, followed by an optional slash and single name component. I do not understand the use of the host name component, but that would match 'path1/' in my example; the single component would match 'path2', and the optional slash-and-name component matches '/path3'. The match then fails on the trailing '/my-test-image.
I have tested building an image with this name from the docker command line with success. I ran my example with an image name of 'some.docker.repository.com/user/path1/path2/my-test-image' and it runs successfully.
Also, please note that the link to http://bit.ly/docker_image_format is dead.
Info
mvn -v
) :Docker version :
Docker version 1.12.6, build 78d1802
If it's a bug, how to reproduce :
Create a POM file with the docker-maven-plugin and image name with three or more path elements after a repository and user name and before the image element.
If it's a feature request, what is your use case :
Sample project : [GitHub Clone URL]
The text was updated successfully, but these errors were encountered: