I hosted a python app on the Google Compute Engine using the container.
The container was working perfectly on the Google cloud run, but the server is refusing connection when it is hosted on Compute Engine.
first I uploaded the container to "Google Container Registry", then from there I'm directly deploying it to the compute engine. I did not get any errors in the log, But I got few warnings. I updated my question with the log.
- Soorya
is there any way to check whether my container is started or not?
- Soorya
You can ssh to your Compute Engine instance and run docker ps.
- norbjd
@norbjd Yes, it seems like my docker is running. It says uptime 7 mins.
- Soorya
@Soorya great :) I've experienced once a long startup time on Container-Optimized OS, caused by a too small machine type (I was using the smallest machine type).
- norbjd
1 Answers
0
votes
In a summary, this got fixed over the time, as the container started ~10min after the instance is created.
SSH the container node, and running docker ps shows that the docker was running, and the application port (8080) was exposed.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
docker ps
. - norbjd