Problem scenario
You have configured a Docker container with a web service (e.g., Apache web server or Nginx). You configured the listening, external port to be 80 or a different port number. You find the web server (either Apache or Nginx) is not working from a web browser. How do you find what is wrong?
Solution
#1 Use nmap to test the port and IP address.
…