I have my Docker container running on GCP Compute Engine. The CE server is running on CentOS 7. My Docker container has the application being served by Nginx with port 80 exposed. For some reason, I can't access it from the external IP address on my browser. I ran the container with this command:
sudo docker run --name myapp -p 80:80 -d myapp:1.0.0
When I do sudo curl <internal_ip>:80
or sudo curl <localhost>:80
it will show that the application is running and returns back the content, but if I try to access in my browser with <external_ip>:80
, it doesn't load anything. What can I do to make this accessible through the external IP address?