DevOps Assignment Day 2 – P. Sai Harshini

q1. What is a Docker ?

a1. A docker is a tool for managing container. A container is fully independent app run time environment. Managing involves :

create, start , stop, restart, pause and un-pause. Using docker we can manage containers .

Docker is a software platform which enables creating, running, distributing applications. It enables developers to package the applications that is containerization of various components. It provides consistent and isolated environments.

Virtual Machines vs Containers. This image shows the variation between a container and a normal virtual machine.
Docker Data Containers

q2. What is a container ?

a2. Container is a fully independent isolated app run time environment It is a isolated package that contains system tools, libraries, etc. to run software applications. They do not need operating Systems. Perhaps it requires a Docker image.

We can run executable files inside the containers. The containers are very light weight that means it consumes less disk space unlike Virtual Machines. Multiple containers can be run at a time.

q3. Top 5 Advantages of Docker

a3. The advantages of Docker are :

  • Provides isolated environments for running applications
  • Lightweight
  • It is fast and flexible. It takes seconds of work to create a container.
  • Fast Development
  • Automated

q4. 10 Commands used in today’s LAB.

a4. They are :

  1. docker create httpd : creation of a container
  2. docker ps -a : To view the list of containers already available
  3. docker start container_id : start a specific container after creating it.
  4. docket stop container_id : stop a specific container.
  5. docker rm conatiner_id: remove a specific container. Can’t remove a container which is running currently. we need to stop it first.
  6. docker exec -it container_id bash : enter inside a container.
  7. docker inspect container_id : inspect specific container. It provided data like ip address etc.
  8. docker run -itd docker_image: create a container of docker image ex. ubuntu
  9. docker pull ubuntu : installs ubuntu
  10. docker iamges : lists out the docker images available with us on system.
Notify of

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

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x