Docker Assingment

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 an open source platform for managing containers. It enables developers to package applications into containers. this platform makes the task easier, simpler and safe to build, deploy and manage the containers. Docker is essentially a tool kit that enables developers to build, deploy, run, update, and stop containers using simple commands and work saving automation through a single API. As, a result, container technology offers all the functionality and benefits of VMs including application isolation, cost effective, disposability and scalability.

See the source image

2)What is Container

Containers are instances of Docker images that can be run using the Docker run command. Docker Containers are the ready applications created from Docker Images. We can create, start, stop, move, or remove a container using the docker. We can connect a container to one or more networks, attach storage to it, or even create a new image based on its current state. A container is defined by its image as well as any configuration options you provide to it when you create or start it. When a container is removed, any changes to its state that are not stored in persistent storage disappear.

See the source image

3)Top 5 advantage of Docker

  • Consistent and Isolated Environment
  • Test, Roll Back and Deploy
  • Cost-effectiveness with Fast Deployment
  • Continuous Integration
  • Security
  • Flexibility

4)Top 10 commands used

  • docker ps -a ————-> display all containers status
  • docker start—————>starts a container
  • docker images————-> to check the images currently running
  • docker pull httpd ———–> pulls httpd docker image from docker hub
  • docker exec -it bash ——–>create a new bash session inside container.
  • docker inspect (cont id) —–> Gives information about the container.
  • docker ps ———————-> lists the running containers by default
  • docker stop (container id) —> it stops that container specified.
  • docker rm (cont id) ————-> removes that container from the list
  • docker run -d httpd –———> is used to run the container in the detached mode.
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