Introduction to Docker
docker run --rm -it ubuntu bin/bash
docker images
docker ps
docker ps -a
https://hub.docker.com/_/python
docker pull python
docker run --rm -it python
docker run --rm -it python:3.10.4-slim-bullseye
python3 src/app.py
docker build -t my_python_app .
docker run --rm my_python_app
docker run --rm -it my_python_app bash
docker run --rm -v "$(pwd)"/data:/code/data my_python_app
docker run --rm -it -v "$(pwd)"/data:/code/data my_python_app bash
docker-compose build
docker-compose up
docker-compose down
Rename the env_file_sample
to .env
docker-compose -f plus-postgres.docker-compose.yml build my_python_app_dc
docker-compose -f plus-postgres.docker-compose.yml up pgdatabase
docker-compose -f plus-postgres.docker-compose.yml up my_python_app_dc
docker-compose -f plus-postgres.docker-compose.yml down