Skip to content
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

Failure referencing a previous staged image in FROM clause #1264

Closed
cvgaviao opened this issue Sep 9, 2019 · 0 comments · Fixed by #1282
Closed

Failure referencing a previous staged image in FROM clause #1264

cvgaviao opened this issue Sep 9, 2019 · 0 comments · Fixed by #1282
Assignees

Comments

@cvgaviao
Copy link

cvgaviao commented Sep 9, 2019

Description

I'm trying to use this plugin to run a multi-stage build using a Dockerfile

Initiating the build I receive this error:

[ERROR] DOCKER> Unable to pull 'graalvm:latest' : {"message":"pull access denied for graalvm, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} (Not Found: 404) [{"message":"pull access denied for graalvm, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} (Not Found: 404)]

Info

  • d-m-p version : 0.31.0
  • Maven version (mvn -v) : 3.6.1

  • Docker version : 19.03.2
  • If it's a bug, how to reproduce :
In my Dockerfile I have: 
FROM oracle/graalvm-ce:19.2.0 AS graalvm
...
FROM graalvm

In my POM I have:

                        <plugin>
                            <groupId>io.fabric8</groupId>
                            <artifactId>docker-maven-plugin</artifactId>
                            <version>${docker-maven-plugin.version}</version>
                            <configuration>
                                <verbose>true</verbose>
                                <images>
                                    <image>
                                        <alias>service</alias>
                                        <name>${image.namespace}/${image.name}:${image.tag}</name>
                                        <build>
                                            <noCache>false</noCache>
                                            <optimise>true</optimise>
                                            <tags>
                                                <tag>${project.version}</tag>
                                            </tags>
                                            <contextDir>${project.build.directory}/context</contextDir>
                                            <dockerFile>${project.basedir}/src/main/docker/Dockerfile</dockerFile>
                                        </build>
                                    </image>
                                </images>
                            </configuration>
                        </plugin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants