Docker
docker run optionsπ
Environment variablesπ
Specify as many environment variables as you like with the -e option
docker run -e API_HOST="http://api:8000" -e API_USERNAME="badman" ...
Volumesπ
docker run -v /local/path:/docker/path --rm docker-image-name command
Logsπ
Follow logs of a running docker instance
docker logs -f container-name
Clean upπ
Remove unused containers, networks, images etc
docker system prune
Official Docker system prune reference
docker-composeπ
Start a single service from a compose file, exposing the port 8000 that the webserver uses so it is accessible from the host.
docker-compose run --rm -p 8000:8000 --name web web python manage.py runserver 0.0.0.0:8000