If I pull a Ubuntu image from Docker Hub using docker pull ubuntu:14.04
and then list my images with docker images
I see that the Ubuntu image has a virtual size of just ~188MB. I don't understand why the image size is so much smaller than the size of an Ubuntu ISO that I might use to run a VM on OS X. I use OS X, so I use docker-machine to set up a docker daemon. How is Docker able to run an Ubuntu image on OS X with such a small footprint?
Add a comment
|
1 Answer
Because usually docker images contains only necessary minimum - in case of ubuntu image, only base system, without GUI (which is rarely used in containers) and without most tools. Ubuntu image actually relatively big - there are much smaller ones.
-
1and Debian is between 84 and 122 MB, depending upon the versions May 21, 2015 at 16:18
-
1
-
It's still a huge difference. So you're saying the GUI and the tools account for 80+% of the size of an Ubuntu ISO?– Mike BApr 28, 2020 at 1:34
-
2@mblakesley yes, in old times when internet was slow and expensive minimal images were much more popular, they still exists, but not many people using them nowadays, for ubuntu you can see sizes here - help.ubuntu.com/community/Installation/MinimalCD– ISanychApr 28, 2020 at 9:39