Last active
February 21, 2019 08:44
-
-
Save gponty/cb755ebb486edab6f7eeaa359be6225b to your computer and use it in GitHub Desktop.
Bash docker exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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