Skip to content

Instantly share code, notes, and snippets.

@hericah
Forked from Hypnosphi/docker-shell.sh
Created June 7, 2022 03:16
Show Gist options
  • Save hericah/ea900775e64d8c13b66c83edb394e5f7 to your computer and use it in GitHub Desktop.
Save hericah/ea900775e64d8c13b66c83edb394e5f7 to your computer and use it in GitHub Desktop.
Run docker container, mount current working directory and get interactive shell
docker run -ti -v $(pwd):/tmp -w /tmp DOCKER_IMAGE /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment