DOCKERFILE COMMANDS:
Run below command to build the image:
To run the image in a container:docker build . -t <nameofimage>
docker run container --name c1 -dit img1
To go into the container:
docker exec -it c1 bash
to run without container
docker run -it img1
if the file name is not Dockerfile but something else such as abc then use -f:
docker build . -f abc -t imgnodockfile