I used command "docker run -p 8080/8080 --name my_local_image ...." and it failed saying Unable to find image '8080/8080:latest' locally
8080/8080 = what this two port represents exactly ?
Replace this " -p 8080/8080 " by this " -p 8080:8080 "
Example : I want to run tomcat server in a docker container, the default port of tomcat is 8080 and I want to expose my docker on port 9000 so i have to write :
docker run -p 9000:8080 --name myTomcatContainer tomcat
So with this configuration I can access to Tomcat from outside using : http://host-ip:9000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With