Skip to content

Instantly share code, notes, and snippets.

@dciccale
Last active March 30, 2022 16:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dciccale/31f77c856d6090c89d80 to your computer and use it in GitHub Desktop.
Save dciccale/31f77c856d6090c89d80 to your computer and use it in GitHub Desktop.
docker-enter bash alias to enter a docker container
# usage docker-enter [CONTAINER_ID]
dockerenter() {
docker exec -it $1 bash
}
alias docker-enter=dockerenter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment