Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active April 14, 2024 06:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gmolveau/e3673e3c25e4a77f3377ca3d97f10288 to your computer and use it in GitHub Desktop.
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)
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