Home > OS >  How the browser open on the server host docker Nginx service in the container
How the browser open on the server host docker Nginx service in the container

Time:11-16

Situation:
1) with the server host is not in the same local area network (LAN), but the host can ping server () can SSH login server, the server can't ping the host
2) want to docker in host browser to open the server in a container Nginx service
3) no root access server

CodePudding user response:

The server's IP + port mapping

CodePudding user response:

1, indicate that the network is unblocked, different host server ping, may be NAT model under the virtual machine, or other network configuration,
2, the server through the docker ps find corresponding container, view the map container ports such as 0.0.0.0:8080 - & gt; 80/TCP, 8080 is the port mapping, IP + port access can be directly,
3, no root access, may not be able to modify the container configuration
  • Related