Created
March 3, 2020 04:06
-
-
Save jocho-here/25a39567f772811b84129b2a9022d709 to your computer and use it in GitHub Desktop.
Docker related shell commands
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
# Description: Exec into the container using bash | |
# Usage: dockerexec <docker_container_name> | |
dockerexec() { | |
docker exec -it $1 bash | |
} | |
# Description: Show current docker containers names ONLY | |
# Usage: dockerps | |
alias dockerps="docker ps --format \"{{.ID}} {{.Names}}\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment