Assignment for docker day 1

What is the use of “docker wait” commands? with example and image Docker wait Blocks until one or more containers stop, then print their exit codes. How to check:Start a container in the backgrounddocker run –name abhi httpdRun docker waitdocker wait abhiKill the container from duplicat terminal and check the return value in actual terminaldocker stop abhi

Read more

Loops in PHP

A Loop is an Iterative Control Structure that involves executing the same number of code a number of times until a certain condition is fulfilled Types of Loops in PHP while  do-while loop for loop foreach loop 1 . While :-The while loop is an entry control loop like for loops i.e., it first check the condition at the start of the loop and if its true then it enters the loop and executes the block of statement which is

Read more

List of Top 5 docker images from hub.docker.com and create a running container of it and try to use it.

Image 1: Ran golang image and executed the image to get the go version. Image2:Ran python image and executed the container Image3:Ran openjdk image and executed the container for java version Image4:Searched for some fun image and got cat image (docker run –rm -it wernight/funbox nyancat) Image5: Create a container for alpine image and excuted to add curl into the container

Read more
1 61 62 63 64 65 332