simon
simon

Reputation: 2811

why does the size of docker images vary on different systems

On my laptop I have an image which is 2.34GB.

Uploaded to gitlab registry it is 929MB.

And when I try to pull it to my server which has 7GB space I run out of disk space.

Upvotes: 2

Views: 1188

Answers (1)

Alejandro Galera
Alejandro Galera

Reputation: 3691

Docker images are conformed by layers. So, if you deploy an image on a computer that already has some layers of image you're deploying, its size is lower. When you deploy from the registry, where are compressed, size is bigger.

Upvotes: 1

Related Questions