Moving to Docker… finally!
Gaurav Gupta
What is Docker?
- Performs operating-system-level virtualization also known as
containerization
- Containers are isolated from each other and use their own set of tools and
libraries
- Run by a single operating system kernel and are therefore more lightweight
than virtual machines
Docker vs VM
Benefits
- Same environment on local, testing and production. No more “works on my
localhost”
- Isolates apps from each other
- Easy to get started on a new project. No need to install any dependencies.
Docker Cheatsheet
List images:
docker images ls
List containers:
docker ps
Download a docker image:
docker pull ubuntu
SSH into a running container:
docker attach <container id>
Detach from a container:
Ctrl p + Ctrl q (This is not as Ctrl p q )
Interact with a container:
docker run -t -i ubuntu /bin/bash
Using Dockerfile
Cheatsheet: docker build -t <image name> .
Orchestration using docker
compose
Cheatsheet: docker compose up / down
Kitematic
“For those who cannot give up GUI’s…”
“Today was your last day without
Docker”
:)

Moving to Docker... Finally!