There is 3 ways to Create Docker Image:

  1. Take Image from DOCKER HUB
  2. Create Image from DOCKER FILE
  3. Create Image from Existing DOCKER Container

How to Take Image of A Previous Created DOCKER Container and then Create a New Container with the old Container’s Image:

Screenshot (1049).png

Screenshot (1050).png

Screenshot (1051).png


DOCKER-FILE & Its Components:

Screenshot (1052).png

> ARG Command ****~ Search in Google


Creating DOCKER-FILE & adding Instruction to it & then Creating Image out of the DOCKER-FILE & then Creating Container from that Image:

Screenshot (1053).png

Screenshot (1054).png


Another Instructions for Creating DOCKER-FILE: