docker run alpine docker run -it alpine docker run -it alpine docker run -it python docker run -it python bash docker images docker images -a docker container ls docker container ls -a docker run -it python docker container ls -a docker run -it python docker container ls -a docker run -it --rm python docker container ls -a docker container prune docker container ls -a cd cs340/aiohttp_code # previous example python3 example1.py # remind ourselves how it works echo ' FROM python RUN pip install aiohttp COPY example1.py /home/runme.py WORKDIR /home CMD python runme.py ' > Dockerfile docker build -t aiohttp_ex1 . docker images docker run -it --rm aiohttp_ex1 # try http://localhost:8080 docker run -it --rm -p 5000:8080 aiohttp_ex1 # try http://localhost:8080 # try http://localhost:5000 docker run -it --rm -p 5000:8080 aiohttp_ex1 bash