Created
March 28, 2023 02:04
-
-
Save Kyungpyo-Kim/8e18e39b80bf3d8859d1289aaa499d9c to your computer and use it in GitHub Desktop.
docker execution function
This file contains 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
# function for executing bash in docker container | |
function de() { | |
if [ $# -eq 0 ]; then | |
echo "Usage: de <container_name>" | |
return | |
fi | |
docker exec -it $1 /bin/bash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment