Skip to content

Instantly share code, notes, and snippets.

@soullivaneuh
Created September 15, 2016 09:37
Show Gist options
  • Save soullivaneuh/855daf567d99bb1d213236c502c2ab6e to your computer and use it in GitHub Desktop.
Save soullivaneuh/855daf567d99bb1d213236c502c2ab6e to your computer and use it in GitHub Desktop.
Docker console script sample
#!/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