Last active
April 6, 2022 05:11
-
-
Save saggie/c3695334c740417f5cc4e3347dc97505 to your computer and use it in GitHub Desktop.
Run Python via Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -itd --rm --name my-python --volume $PWD:/opt/work python:3 /bin/sh | |
docker exec -it my-python bash | |
cd /opt/work | |
python your_script.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment