> Till now we can access DOCKER Container within the Local/HOST Machine but with the help of Port Mapping Concept, we can access DOCKER Containers which is available inside the Local/HOST Machine with the help of Internet


Mapping HOST & Containers port for Accessing Container through Internet:

Screenshot (1066).png


Mapping HOST Port with Container & Going inside Container then Starting Apache Server & Hosting the Webpage then Checking it:

Screenshot (1069).png

Screenshot (1068).png

LAB:

sudo su

yum update -y

yum install docker -y

docker -v

clear

service docker start

docker run -td --name techserver -p 80:80 ubuntu

docker ps

docker port techserver

docker exec -it techserver /bin/bash

apt-get update