3 ms·
Ok.. But if I push 5 docker containers based on say Ubuntu 14.04, will they take 5 times the size of an Ubuntu 14.04 base install, or will they share base insta
by wattengard 12y ago
Ok.. But if I push 5 docker containers based on say Ubuntu 14.04, will they take 5 times the size of an Ubuntu 14.04 base install, or will they share base install?
- agilebyte 12y agoThey will share, and will spin up very fast, so size is not an issue.
- bdcravens 12y agoThey share much of the underlying OS.
- agilebyte 12y agoA little Docker example I keep coming back to: https://github.com/radekstepan/im-runnable https://github.com/radekstepan/im-runnable It creates a little service that lets you run code (like Python, Node) in Docker sandboxed environment.
- bacongobbler 12y agothis is more of a Docker than a Deis question, but a Docker image is composed of layers. Each tagged image keeps an ancestry list of all of the layers it requires. In your case, if you run 5 docker containers on the same host on top of ubuntu:14.04, it will initially pull the parent's layers (ubuntu:14.04), then it will pull its own layers. They all share the same layers, which is why it's so powerful. You get the exact same execution environment every time.