sajad torkamani

Often, it's useful to quickly spin up an interactive bash session inside a Docker image for debugging purposes. Here's how to do that:

docker run --rm -it <IMAGE> bash 
  • --rm: Remove the container after it's stopped (helps to save disk space)
  • --it: Make the bash session interactive
Tagged: Docker