Snippets

Docker: run Python
Sep 24, 2024 docker python containers
Quick pair of commands to run Python code within a container: % docker run -d --rm --name godebug --mount type=bind,source="$(pwd)",target=/go/src arm32v7/golang:alpine % docker exec -it godebug sh /go # cd src/ NOTE: on the host machine, the Python code is stored in the current directory (pwd), it will be found under /go/src inside the container