Day-2 Assignment

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? 

A) Docker is a tool, which helps the developers to merge the applications in to a single container. It is used to create and manages the containers. It can be used to execute the applications in many environments. It is just like virtual machines but different from that. Using the containers in docker we can run them on same hardware.

See the source image
2) What is container?

A) Container is a package it consists of all dependencies like java, git, apache, etc… which are required to run a particular application. Due to this containers memory usage would be less . Container helps to create an environment to run an application. Using this containers we can easily virtualize the operating system and run our applications anywhere.

See the source image

3) What are top 5 advantage of Docker?

A)

  1. Docker containers occupies less memory space.
  2. Better performance compared to virtual machines.
  3. Accessible to different platforms.
  4. Efficiency would be high.
  5. We can reuse the multiple containers present in docker for different applications.

4)What are top 10 commands you used today and one line explanations.

A)

  1. systemctl start jenkins – To start jenkins.
  2. systemctl status jenkins – To check the status of jenkins whether it is running state or not.
  3. docker version – For checking the docker version after installation of docker.
  4. docker images -It would list all the images.
  5. docker ps -a – To list all the containers.
  6. docker pull httd – Creates an image with httd environment.
  7. docker create httd -Creates a container with httd environment.
  8. docker start container- It starts container.
  9. docker exec -it containername bash- It helps to enter in to container.
  10. docker exec containername java- To execute java which is present in container.
  11. History- To check history of our work in command prompt.
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