Docker for the absolute beginner

An image showing The Matrix from Hell
The Matrix from Hell
An image showing how docker works

curl -fsSL https://get.docker.com -o get-docker.sh

sudo sh get-docker.sh

git clone https://github.com/MyoniM/simple-web-app

sudo apt-get update

sudo apt-get install -y python3 python3-pip

pip install flask or sudo apt install python3-flask

FLASK_APP=app.py flask run — host=0.0.0.0

RUN apt-get update

RUN apt-get install -y python3 python3-pip

RUN pip install flask

COPY app.py /opt/app.py

ENTRYPOINT FLASK_APP=/opt/app.py flask run — host=0.0.0.0

docker build . -t myonim/simple-web-app

sudo docker run myonim/simple-web-app

sudo docker ps

sudo docker rm id/name

 by the author.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store