Q1. List out all INSTRUCTION statement of dockerfile and give one line explanation.

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 FROM -It should be the first instruction in the Dockerfile. It is used to specify our base layer from which we are creating the image. MAINTAINER – It is used to set the author. RUN – It is used to run a command in shell. CMD – It provides a default executable for a

Read more

Create one Image which have base as centos and with git – ntp – httpd.

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 docker run –name vin_centos -itd centos:latestdocker psdocker attach 083fb828fcad docker psdocker commit -a”Vineesh” -m”Updated Centos” 083fb828fcad vineesh_centos2docker imagesdocker run –name Vineesh_Centos2 -itd 32083f4af9bedocker psdocker exec a9c938de7bdb git

Read more

Create one Image which have base as ubuntu and with git – ntp – apache2.

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 docker run –name vin1 -itd ubuntu:latestdocker psdocker attach e80fd4a69088docker commit –helpdocker commit -a”VIneesh” -m”Added apache” e80fd4a69088 vineesh_ubuntudocker imagesdocker psdocker exec e80fd4a69088 gitdocker imagesdocker run -itd vineesh_ubuntudocker psdocker exec acdda25da2d2 git

Read more

What is Docker Images and Exaplin in 10 bullet lines?

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 Images are the base of a container. Images are like classes and containers are like objects. We can create any number of containers from an image. Images can be created from Dockerfile or we can pull from registry. Images can have multiple layers. Images have root file systems , PID, USER namespace etc. Image

Read more

Q2. – What is the use of “docker wait” commands? with example and image

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 This command is used for waiting one or more containers to stop. We have to open 2 terminals. In one of them just put docker wait and in the other try to stop the same container. We can see the first terminal with docker wait is returned 0 and stopped waiting. docker wait renamed1

Read more

Q1. – What is the use of “docker update” commands? with example and image

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 It is used for updating container’s configuration. A container have different configurations. We can change those configurations via docker update command. docker update –restart=on-failure:3 renamed1 In the above example we are changing the restart policy of a container.

Read more

Assignment for docker day1

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 Q1. Explain What is Docker Container with image? A container which contains our image with root file system, 1 PID, 1 NW, 1 MNT, 1 USER. Q2. What is the difference between docker stop and docker kill? docker stop and docker kill doing the same thing only the internal process have difference. Both stops

Read more

Q3. What is the differenece between docker pause and docker unpause?

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 Docker pause is used to pause the running container which can be resumed with unpause. But is we stop or kill we can not unpause but we can restart. docker create –name vin6 httpddocker start vin6docker psdocker stop vin6 docker ps -adocker start vin6docker pause vin6docker ps -adocker unpause vin6docker images -adocker ps -adocker

Read more

Q2. What is the difference between docker stop and docker kill?

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 docker stop and docker kill doing the same thing only the internal process have difference. Both stops a running container to an exit state. docker create –name vin6 httpddocker start vin6docker psdocker stop vin6docker ps -adocker start vin6docker pause vin6docker ps -adocker unpause vin6docker images -adocker ps -adocker stop vin6docker restart vin6docker psdocker kill

Read more