I have some confusion on Docker ports.As i am not aware of the IP of server i cannot check myself.
In Dockerfile i can see below
EXPOSE 8080:8080
But to run the container is ran using the same image below command is used
docker run -d --restart=unless-stopped --name image1 -p 3000:8080 image1:latest
My confusion is wile creating image host port was given as 8080 in Dockerfile but when running the container from same image host port given was 3000.So in which port of host this container will run and why ?