Skip to content

Instantly share code, notes, and snippets.

@sebble
Last active February 19, 2017 11:16
Show Gist options
  • Save sebble/a999ece3836d2fb8f6fe96645958398d to your computer and use it in GitHub Desktop.
Save sebble/a999ece3836d2fb8f6fe96645958398d to your computer and use it in GitHub Desktop.
Dokku 'alias' for host running Dokku as a container
dokku() { docker exec -i "$(docker ps|awk '$2=="sebble/dokku"{print $1}'|head -1)" sudo dokku "$@"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment