Created
September 8, 2015 14:28
-
-
Save otobrglez/fb5a0e14474bed913902 to your computer and use it in GitHub Desktop.
Docker helper scripts that I always add to my Docker projects. <3
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
#!/usr/bin/env bash | |
docker exec -ti $(docker ps -f 'image=databox/qm' -q | head -n1) bash -lc "cd /home/app/qm; $*" | |
# Usage: | |
# ./in_qm uname -a |
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
#!/usr/bin/env bash | |
docker exec -ti $(docker ps -f 'image=databox/qm' -q | head -n1) /bin/sh -lc "cd /home/app/qm; bash -l" | |
# Usage: | |
# ./qm_shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment