Skip to content

Instantly share code, notes, and snippets.

@gponty
Last active February 21, 2019 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gponty/cb755ebb486edab6f7eeaa359be6225b to your computer and use it in GitHub Desktop.
Save gponty/cb755ebb486edab6f7eeaa359be6225b to your computer and use it in GitHub Desktop.
Bash docker exec
dbash() { docker exec -u 1000 -it $(docker ps -aqf "name=$1") bash; }
dbashsudo() { docker exec -it $(docker ps -aqf "name=$1") bash; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment