Images Vs Containers: Docker
Images Vs Containers: Docker
Docker
Images Containers
Image
NodeJS Environment
Finding / Creating Images
We need an Image!
Custom Image
Important: Every
App Code, Config, Setup Steps & Run
command is a layer on
Command
its own!
Image Layer 3
Image Layer 2
Image Layer 1
Where To Get Images
You can build your own images Combine third-party images with
based on other images custom setup steps and tools
Container
Image
<Our Code>
<Our Code>
Environment
Environment
Container
<Our Code>
Environment
<Our Code>
Managing Images & Containers
name : tag
Needs to be
Share: docker push IMAGE_NAME
HOST:NAME to
talk to private
Use: docker pull IMAGE_NAME registry
Key Commands
Images are the templates / blueprints Images are either downloaded (docker
for Containers, multiple Containers can pull) or created with a Dockerfile and
be created based on one Image. docker build.