Docker for the absolute beginner

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

curl -fsSL -o

sudo sh

git clone

sudo apt-get update

sudo apt-get install -y python3 python3-pip

pip install flask or sudo apt install python3-flask flask run — host=

RUN apt-get update

RUN apt-get install -y python3 python3-pip

RUN pip install flask

COPY /opt/

ENTRYPOINT FLASK_APP=/opt/ flask run — host=

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