Skip to content

A Docker example, running a Flask server on localhost:8080. Echoes the url path.

License

Notifications You must be signed in to change notification settings

mr-briggs/docker-flask-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Flask Echo Server

A Docker example, running a Flask server on localhost:8080. Echoes the url path.

Usage:

docker build -t hello-server .
docker run -p 8080:1234 hello-server

Inside the container, hello_server.py runs a Flask server on the virtual port 1234, which Docker routes to the real port 8080 with the -p 8080:1234 argument. If you were to go to localhost:8080/foo/bar while the docker container is running, you will receive a text page with Hello, foo/bar as the body.

About

A Docker example, running a Flask server on localhost:8080. Echoes the url path.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published