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

No history available when running docker history on a Jib build docker image #840

Closed
anthonydahanne opened this issue Aug 14, 2018 · 4 comments
Milestone

Comments

@anthonydahanne
Copy link

anthonydahanne commented Aug 14, 2018

Description of the issue:
I've create a docker image with jib, anthonydahanne/petclinic:jib ; when I run docker history on it, there is no layer described

Expected behavior:
See layers description / metadata added at each step

Steps to reproduce:

[node3] (local) root@192.168.0.41 ~
$ docker pull anthonydahanne/petclinic:jib
jib: Pulling from anthonydahanne/petclinic
8f125ded1b48: Pull complete
ba7c544469e5: Pull complete
43b4357066b0: Pull complete
4dcd5ac6fd80: Pull complete
16a5fb589b85: Pull complete
d24512140230: Pull complete
Digest: sha256:cf8716fddcce10c93c9803562acf2dd48804983e4d5ee6a6db151930d84df697
Status: Downloaded newer image for anthonydahanne/petclinic:jib
[node3] (local) root@192.168.0.41 ~
$ docker history anthonydahanne/petclinic:jib
IMAGE               CREATED             CREATED BY          SIZE                COMMENT

I would have expected at least 6 layers to show up, since, after all, docker pulled 6 layers

Environment:
Docker version 18.03.1-ce, build 9ee9f40

jib-maven-plugin Configuration:

     <plugin>
        <groupId>com.google.cloud.tools</groupId>
        <artifactId>jib-maven-plugin</artifactId>
        <version>0.9.8</version>
        <configuration>
          <to>
            <image>registry.hub.docker.com/anthonydahanne/petclinic:jib</image>
          </to>
        </configuration>
      </plugin>
@TadCordle
Copy link
Contributor

This is currently being tracked by #875, going to close this issue in favor of that one.

@anthonydahanne
Copy link
Author

okee - thanks

@coollog coollog added this to the v0.9.10 milestone Aug 29, 2018
@coollog
Copy link
Contributor

coollog commented Aug 31, 2018

@anthonydahanne We have released version 0.9.10 that writes history for the Docker image.

@anthonydahanne
Copy link
Author

thanks @coollog for letting me know.
I've just tested, and I confirm 0.9.10 provides history :

docker history anthonydahanne/petclinic:jib --no-trunc
IMAGE                                                                     CREATED             CREATED BY          SIZE                COMMENT
sha256:1ed95add60958bd72e99b428c5b43b8b397272d08e545668725179f0273bafb1   48 years ago        jib-maven-plugin    47.8kB
<missing>                                                                 48 years ago        jib-maven-plugin    940kB
<missing>                                                                 48 years ago        jib-maven-plugin    38.4MB
<missing>                                                                 48 years ago        bazel build ...     99.8MB
<missing>                                                                 48 years ago        bazel build ...     1.93MB
<missing>                                                                 48 years ago        bazel build ...     16.6MB

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

No branches or pull requests

3 participants