Docker Architecture – 5000 feet overview
- Docker when installed, will have two major components
- client: a cli tool to interact with server
- Daemon: this does the heavy lifting
- To create a process we need an executable (application), Generally from one executable i can create multiple instances of applications, eg: multiple word documents, multiple chorme windows
- In docker we create containers and to create container we need image.
- Images are available in registry. There are
- public registries
- private registries
- Docker default registry is docker hub
What happens when we try to create a container
- Command: I want to create an nginx container
docker run -d --name web1 -P nginx

Installing docker
- Gen-AI Students: Install docker desktop
-
windows use winget and mac use homebrew
-
Server side: Lets create a ubuntu linux vm
- Easy way to install docker
curl -fsSL https://get.docker.com -o install-docker.sh
sh install-docker.sh
- Add your current user to docker group
sudo usermod -aG docker ubuntu
# exit and relogin
docker info
# you should see client as well as server version