Пример приложения Python от GitHub до Docker Image
docker run -it --rm --name my-first-python-script -v "$PWD":/usr/src/widget_app python:2 python my_script.py
Open Owl
docker run -it --rm --name my-first-python-script -v "$PWD":/usr/src/widget_app python:2 python my_script.py
FROM python:3
$ docker ps -q -a | xargs docker rm
RUN pip install pystrich
docker rmi $(docker images | grep "<none>" | awk '{print $3}')
FROM python:3
ADD my_script.py /
RUN pip install pystrich
CMD [ "python", "./my_script.py" ]
docker build -t python-barcode .
docker run -it --rm --name my-first-python-script -v "$PWD":/usr/src/widget_app python:3 python my_script.py
docker ps
# OR #
docker ps -a # to see all containers, including those not running
ADD my_script.py /