Created
September 15, 2016 09:37
-
-
Save soullivaneuh/855daf567d99bb1d213236c502c2ab6e to your computer and use it in GitHub Desktop.
Docker console script sample
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
#!/usr/bin/env bash | |
if [ "$#" -ge 1 ]; then | |
docker exec -u $(whoami) -it project_console_1 "$@" | |
else | |
docker exec -u $(whoami) -it project_console_1 bash | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment