wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
46.69k stars 1.78k forks source link

how to get the image/layer name #330

Open f1-outsourcing opened 3 years ago

f1-outsourcing commented 3 years ago

How to get the name from 2a2a65b17094eb8?

┃ ● Layers ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │ Current Layer Contents ├──────────────────────────────────────────────────────────
Cmp   Size  Command                                                                  Permission     UID:GID       Size  Filetree
    5.6 MB  FROM 2a2a65b17094eb8                                                     drwxr-xr-x         0:0     841 kB  ├── bin
     19 MB  set -x   && apk add --no-cache --virtual .build-deps   gcc   libc-dev    -rwxrwxrwx         0:0        0 B  │   ├── arch → /bin/busybox
     417 B  #(nop) COPY file:a7db5ef8dbcd831ff68d6ff2fb45bc340539ad6d7a58d54323fd739 -rwxrwxrwx         0:0        0 B  │   ├── ash → /bin/busybox
    4.7 kB  addgroup $HAPROXY_USER -g $HAPROXY_UID     && adduser $HAPROXY_USER -u $ -rwxrwxrwx         0:0        0 B  │   ├── base64 → /bin/busybox
    2.9 MB  apk add ipset bash ca-certificates --no-cache                            -rwxrwxrwx         0:0        0 B  │   ├── bbconfig → /bin/busybox
    2.3 kB  #(nop) COPY file:bd4dd931baa44da285e23c3213c94fff99fef0c69c775dd793bd6c0 -rwxr-xr-x         0:0     841 kB  │   ├── busybox
    216 kB  update-ca-certificates                                                   -rwxrwxrwx         0:0        0 B  │   ├── cat → /bin/busybox
mark2185 commented 2 years ago

Do you maybe have an image this can be reproduced with?