Docker Same Port Forwarding Not Accessible

  docker, question

System: Ubuntu 14.04 x64

1. docker-compose.yml configured in Ubuntu14.04 built in local virtual machine can be accessed by forwarding the same port and different ports

2. Use the same configuration file on the server. After docker-compose up -d is started,
Using curl on the Serverhttp:// access, use curlhttp://Server IP:80, cannot be accessed.
If the port is changed to 81:80http://Server IP:81 is also accessible

Netstat has seen the port, 80 is not occupied.

Docker-compose.yml configuration

 - "80:80"
 - "3001:3000"

Server side:>80/tcp>3000/tcp
  1. Can port 3001 be accessed?

  2. Port 80 should be blocked by firewall …

Install nmap on another server

sudo apt-get install nmap

Then execute the following command to see if port 80 is blocked:

sudo nmap -p80 is the IP of the first server.

If port 80 is blocked, the output status is filtered