Closed bill202107 closed 3 years ago
I had also configure the image name with registry and it can pushed. But it save the image name with the registry which isn't I want.
<image>
<name>10.10.10.10/myrepo/${project.artifactId}:${project.version}</name>
</image>
Description
I want to save the image to tar with image name as ${project.artifactId}:${project.version}. At the same time I need to push the image to my registry. But I had no idea why this will fail.
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${fabric8io.docker.plugin.version}</version>
<configuration>
<tagName>latest</tagName>
<pushRegistry>10.10.10.10/myrepo</pushRegistry>
<saveName>${project.artifactId}:${project.version}</saveName>
<saveFile>target/${project.artifactId}-${project.version}.tar</saveFile>
<images>
<image>
<name>${project.artifactId}:${project.version}</name>
</image>
</images>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>build</goal>
<goal>tag</goal>
<goal>save</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
[Describe the actual results] [ERROR] DOCKER> Unable to push 'xxx:1.0.021-SNAPSHOT' to registry '10.10.10.10:443/myrepo' : denied: requested access to the resource is denied [denied: requested access to the resource is denied ]
Software: