Last active
November 20, 2024 13:43
-
-
Save gmolveau/e3673e3c25e4a77f3377ca3d97f10288 to your computer and use it in GitHub Desktop.
Quickly run a temporary docker container and execute bash to try things (like a CI script)
This file contains 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 --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
# --rm : remove after exit | |
# -it : interactive TTY | |
# -v : mount folder : current folder to /tmp folder of the container | |
# debian:10-slim : docker image https://git.io/JJzfy | |
# /bin/bash : run bash in this container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment