Skip to content

Instantly share code, notes, and snippets.

@Kyungpyo-Kim
Created March 28, 2023 02:04
Show Gist options
  • Save Kyungpyo-Kim/8e18e39b80bf3d8859d1289aaa499d9c to your computer and use it in GitHub Desktop.
Save Kyungpyo-Kim/8e18e39b80bf3d8859d1289aaa499d9c to your computer and use it in GitHub Desktop.
docker execution function
# 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