Some General Docker Concepts

Mohammad Mahdi Moghaddam
3 min readOct 5, 2023

--

I have seen many documents about docker and working with it for a long time and after all these i need to tell for people , so what the h*ll is docker? Read My Funny Story

Imagine you and your team created a great software for your boss! everything is good and developers are satisfied about working it on their machines but testers are so angry (Read It Very Happy) because of software have a lot of problems and cant run , and they go to boss and tell : Hey! What is going on to your developers! software cant run on our machines , developers come and say : No! It working on our machines !

Boss for resolution this conflict call MAMAD which is work in google and want to help them .

Mohammad Mahdi Moghaddam
MAMAD Comes From California And Help The Boss

MAMAD comes and tell about new tech which should call it docker , he say : you can choose a better way for deploy , test and build your software and is manage your software with packages which adapt with all os platforms and can run on all every machine ! we call him Containers

Docker Container

We can isolate our application and package them in come parts called Containers which can start , stop , delete , etc and are created from docker images which are on a registry called docker hub. docker can manage containers and help to go in production environment and every container contained self dependencies , libraries , packages for running them in every machine which isolated from other containers !

Docker Images

Docker images are some necessary aggregated which software created and pulled that from docker hub which is a registry for exist all docker images . we must create docker containers from docker images.

Docker Hub (Docker Repository)

Imagine a big repository which all images are stored in that and can push our image or pull other images from that .

Docker Compose

MAMAD say we can run multiple containers on time and manage them great. docker compose and its commands can help us for managing them , it can be with a YAML file which is define all nodes and containers for work.

Simple Compose YAML File

Docker Swarm

Swarm means we have a lot of containers which must manage them like microservices architecture .

Docker File

For create and build image in everywhere some commands are stored in a without file extension file which all about deploy , build and test them in machine.

Mohammad Mahdi Moghaddam Dockerfile Photo
Sample Of ASP.NET CORE Project Docker File

Docker CLI

How to work with docker ? command line interface for docker which can do all docker instructions . like docker images :)

Mohammad Mahdi Moghaddam Docker Cheat Sheet Photo
Docker CLI Cheat Sheet

Conclusion

MAMAD after top descriptions tell the boss : command to your developers to learn about docker or hire a good devops and platform engineer for your team . this conflict never happens again

Thank For Read This Funny Stupid Story !

--

--

Responses (1)