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

how to get image size by skopeo inspect as docker inspect #1616

Closed
tanguofu opened this issue Apr 8, 2022 · 1 comment
Closed

how to get image size by skopeo inspect as docker inspect #1616

tanguofu opened this issue Apr 8, 2022 · 1 comment

Comments

@tanguofu
Copy link

tanguofu commented Apr 8, 2022

the output of docker inspect mysql:8.0.27 :

...
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 515592044,
        "VirtualSize": 515592044,
...

as there is no size of ./bin/skopeo --override-arch amd64 inspect --raw docker://mysql:8.0.27

skopeo inspect --raw docker://mysql:8.0.27 

{
  "manifests": [
    {
      "digest": "sha256:238cf050a7270dd6940602e70f1e5a11eeaf4e02035f445b7f613ff5e0641f7d",
      "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
      "platform": {
        "architecture": "amd64",
        "os": "linux"
      },
      "size": 2828
    }
  ],
  "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
  "schemaVersion": 2
}

so can skopeo add the size output of skopeo inspect ? many thanks

@mtrmac
Copy link
Contributor

mtrmac commented Apr 8, 2022

Thanks for your report.

This is not currently implemented; adding that is tracked in #641 .

@mtrmac mtrmac closed this as completed Apr 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants