linux - Simple Docker Concept -
i'm going through getting started docker guide , understood of basics except 1 concept.
i how docker/whalesay takes 247 mb. needs download few layers, including base image of ubuntu. hello-world should around same size? it's self-contained image can shipped anywhere.
when hello-world executes, there's still linux layer running somewhere, , downloaded hello-world before docker/whalesay couldn't have been using linux layer downloaded docker/whalesay. missing here?
it not ubuntu instance. check hub: https://hub.docker.com/_/hello-world/
here if click on latest, can see dockerfile:
from scratch copy hello / cmd ["/hello"] the defines operating system based on. scratch "empty" image, described here: https://hub.docker.com/_/scratch/

Comments
Post a Comment