Custom Images

Steps  to create a docker Image 


STEP 1 creation of docker file

Example   Create a image that  runs  redis-server

docker file



RUN command  ->     docker build .

 what does these 3 steps do ( FROM , RUN , CMD)

1. FROM 
   The from Alpine We said that we wanted to use the Alpine docker image as kind of
   an initial operating system or a starting point for the image that we are creating.

2. RUN
    with this command we are installing dependencies which are required for  our docker

3. CMD 
  in this section we define the start command when our docker container start running .


DETAILED FLOW





  

Comments