Docker – 02- Images and Containers

Docker Images vs Containers

docker-image

 

I will describe one sentence by OOP

Images are classes

     >Readonly filesystem

Containers are class instances

>Encapsulated set of process running Read-Write copy of that filesystem(image)

By the way

docker run -> starts a container from given image

 We will describe docker images command (build,commit,import)

Images namespaces

Classes are must be under the namespace so images must be

Root like

ubuntu

User (and organizations)

apocoder/clock

Self-Hosted

registry.example.com:5656/my-private-image

You can see the list of images by this command

docker images

You can search spesific image by

docker search zookeeper

And you can pull images by

docker pull debian:jessie

docker images

You will show downloaded image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s