Docker – 02- Images and Containers

Docker Images vs Containers



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


User (and organizations)



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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s