Skip to content

Instantly share code, notes, and snippets.

@otobrglez
Created September 8, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otobrglez/fb5a0e14474bed913902 to your computer and use it in GitHub Desktop.
Save otobrglez/fb5a0e14474bed913902 to your computer and use it in GitHub Desktop.
Docker helper scripts that I always add to my Docker projects. <3
#!/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
#!/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