Friday, November 24, 2023

Docker 11

Revise again with few more commands. learning port number assigning and other things

First step, creating a container by running the below command

 docker run -itd --name con2 ubuntu:18.04







Next step , is we need to login inside the container.







































Why the container got stopped Now. 

The reason, is when ever we are running use bash command, a new processor will be created, and when we select exit . it is going to kill that processor.







Now, you can see only one process will be running






























Ctrl p q Combination





















Let me map to the port














Next let us install Apache inside newly created container



















No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...