'Cannot access docker container which located on server via server ip
So, i have server with docker installed in it. I run docker containers on 0.0.0.0:80:80: If i run
curl -X GET 0.0.0.0:80
i'll get some response, but if i run
curl -X GET 195.161.68.88:80
i'll get nothing ( 195.161.68.88 is server ip)
i thought container has no internet connection, but
ping google.com
inside of a container works properly, 0% packet loss
also if i run clear django project on server(not inside docker) on ip 0.0.0.0:80 it can be accessed by both curl examples above
any ideas why i cannot access docker containers via internet by server ip?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
