Simple Python Flask Dockerized Application#

Build the image using the following command

docker build -t simple-flask-app:langford .

Run the Docker container using the command shown below.

# daemon
docker run --restart always --rm -d -p 4002:4002 --name langford_willow simple-flask-app:langford
# no daemon
docker run --rm -p 4002:4002 --name langford_willow simple-flask-app:langford

The application will be accessible at http:127.0.0.1:4002 or if you are using boot2docker then first find ip address using $ boot2docker ip and the use the ip http://<host_ip>:4002