Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29410

Docker image access on aws ec2

$
0
0

I created a Docker image of a Flask application running the following code on a EC2 server:

docker build -t app .docker run -80:80 app .

The result seems to work as the server returns:

Serving Flask app "app" (lazy loading)Environment: productionDebug mode: offRunning on http://127.0.0.1:5000/

How can I access http://127.0.0.1:5000/ direction on the EC2 server, or change the direction in order to see it?

Also the Docker image is supposed to be running on port 80, but I don't see what role this port playing on the process.

I am following "Simple way to deploy machine learning models to cloud".


Viewing all articles
Browse latest Browse all 29410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>