1

first I using 'docker image inspect' command to get the size of my image , the Size is 2773668963 Byte. Then I get the size using 'docker image ls', it shows 2.77G. But the 2773668963 Byte convert to GB is 2.58G.

houweilong
  • 46
  • 2
  • 1
    Just looks like the normal confusion between [gigabytes (GB)](https://www.google.com/search?q=2773668963+byte+in+gb) and [gibibytes (GiB)](https://www.google.com/search?q=2773668963+byte+in+gib). – spender Jul 26 '21 at 12:22
  • ok, Thanks. I have found the code in https://github.com/docker/go-units/blob/master/size.go. – houweilong Jul 27 '21 at 01:20

0 Answers0