Comments (4)
please use docker ps command and check with port how many containers are running
Then stop all the container by using docker stop containerid
Keep the port to 5000 in the falskapp.py
and map the port from 5000:5000 while running dockers
from dockers.
Tried that as well but it's not working
changes
-
flask_api.py :
if name=='main':
app.run(port = 5000) -
docker run -p 5000:5000 money_api
-
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) (Still not working)
from dockers.
Use
if name=='main':
app.run(host='0.0.0.0',port=5000)
from dockers.
It worked,
closing the ticket
from dockers.
Related Issues (10)
- Docker File Missing? HOT 2
- Suggesting a slight change in Dockerfile
- Trying unpickle estimator RandomForest HOT 4
- Train model fille is missing plz upload again HOT 1
- Not able to display HOT 2
- Issue when using POST method while sending request for the file HOT 1
- Swagger API is not opening
- Getting an error in docker while building an image HOT 4
- dockerfile parse error line 1: FROM requires either one or three arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockers.