Docker Assignment 1 – Vishnupriya

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now
  1. What is Docker ?

Docker is container/Management Platform tool. It helps to save cost & time and improve quality as well. It will helps to run lots of application in less CPU & RAM compare to any other physical server.

2. What is Container?

In older days to run application virtual machine has been used. If we want to run 100s of application then we need 100 Virtual machine and each Virtual machine will require OS and each OS will consume RAM & boot system. In container model, one OS we can have multiple user and each user run their own number of applications. In this way consumption of RAM, memory and operating cost will be reduced. Container will have bundles of all software executables to run application.

3. Top 10 commands with 1 example of using docker container

  1. docker images -> To see list of images available in docker system

2. docker ps -> To see list of all running containers

3. docker ps -a -> To see list of all running & exited containers
4. docker start containername -> To start a container
5. docker stop containername -> To stop a container
6. docker restart containername -> To restart container
7. docker pause containername => To pause container
8. docker unpause containername -> To unpause container
9. docker kill containername -> To kill running container

10. docker rm containername -> To remove container

11. docker login -> It is used to login to docker hub repository

12. docker run -itd imagename -> Create container from an image

4. Five commands with one example of using docker image?
  1. docker pull imagename => To pull image from repository
2. docker push username/repository => To push image to repository
3. docker images => To see list of docker images

4. docker tag imagename reposiotryname (docker tag vishnu tvishnup/vishnupriya) => To tag image to reposiotry

5. docker build -t imagename . (docker build -t vishnudockerimage .) => To build an image

5. five commands with 1 example of using docker registry?

  1. docker run -d httpd => To create container in faster way (It will create container & pull image from reposiotry)

2. docker tag imagename reposiotryname (docker tag vishnu tvishnup/vishnupriya) => To tag image to reposiotry

3. docker pull imagename => To pull image from repository

4. docker push username/repository => To push image to repository

5. docker login => To login to hub repository

6. docker logout => To logout from hub repository

7. docker commit -m”up-up-git-apache” 5fd8e4229356 vishnu=> It will create layer with combination of git , apache & java images inside container called 5fd8e4229356

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x