
Docker for Beginner's
16 November, 2022
3
3
1
Contributors
Source from Zeal Vora,KPLABS Course(Premium Instructor at Udemy) Udemy
-----------------Table of content-----------------
1.
What is docker and why we need ?
2.
Docker Installation and pre-requisite
3.
Image VS. Containers
4.
Basic commands
5.
port binding
6.
Attached and detached mode
7.
Restart policy
8.
Disk usage
•
•
•


docker images
- List the docker imagesdocker pull image-name
i Pull the image from docker hub
docker ps
- List the container
docker stop container-ID
- Stop the container
docker start container-ID
- Start the container
docker rm -f image name
- Remove the docker image
netstat -ntlp
- See the running port
docker exec -it container-id /bin/bash
- Goto inside the container
docker run -dt -p containerport:actualport --name=anyname conatainer id - Port mapping with container
docker container stop $(docker container ls -aq)
- Stop the all containerdocker container rm $(docker container ls -aq)
- Remove the all containerdocker exec -it container-id /bin/bash
docker run -dt -p 80:81 --name=anyname conatainer id

docker run -dt
•
•
•
•
docker system df

docker
devops
development
develevate
begginer