Mastering Docker Commands
Mastering Docker Commands
Aniruddha Kharve
DOCKER
COMMANDS
BASICS
MASTER ESSENTIAL DOCKER COMMANDS
FOR MANAGING CONTAINERS AND IMAGES
EFFICIENTLY.
KETAN PAWAR
01
WHAT IS
DOCKER?
Docker is software that manages
containers running on a single host
machine.
Docker is not a container, and a
container is not Docker.
It enables packaging and running
applications in a loosely isolated
environment called a container.
Docker is not a multi-host
application/tool.
KETAN PAWAR
02
WHY USE
DOCKER?
Portability: Run anywhere.
Efficiency: Lightweight and fast.
Isolation: No conflicts.
Speed: Quick deployments.
KETAN PAWAR
KEY 03
COMPONENTS an
OF DOCKER
Images: Read-only templates used
to create containers.
Containers: Lightweight,
standalone, and executable units of
software.
Docker Engine: Core service for
building and running containers.
Docker Hub: A repository for
sharing and managing Docker
images.
KETAN PAWAR
ESSENTIAL 04
DOCKER
COMMANDS
1. Docker Pull:
$ docker pull docker.io/httpd
Pulls an image or a repository
from a registry
KETAN PAWAR
2. Docker Images :
05
$ docker images
3.Docker Run :
$ docker run -docker.io/httpd 06
7
KETAN PAWAR
4.Docker Ps :
07
$ docker ps
8
KETAN PAWAR
5.Docker Ps -a:
$ docker ps -a 08
9
KETAN PAWAR
6.Docker Exec :
09
$ docker exec -it
<Container_ID>/<Container_na
me> :
10
KETAN PAWAR
7.Docker inspect
$ docker inspect 10
<Container_ID>/<Container_name> :
11
KETAN PAWAR
8.Docker Logs:
11
$ docker logs [option]<Container_id/Name>
12
KETAN PAWAR
9.Docker Stats :
12
$ docker stats [Option]
<Container_id/name>