Alfred docker cloud workflow
Allows you to quickly jump to stacks on the new docker cloud web interface with fuzzy search and support for docker cloud organizations.
For this workflow to do its work, you need to be logged in to docker with the docker's CLI. If you're using docker hub or docker cloud, you're likely logged in already and this workflow will just work. If not, just log in to docker like this:
$ docker login
Jump to a stack
To see all stacks on your account enter
and to jump to a specific stack, just enter part of its name after the
dc keyword like so:
This will show all of your stacks with
balancer in their name. Matching is done in a very primitive fuzzy manner, so you could find the stack
balancer-production by searching for
It works a bit like the fuzzy file finder in vim's ctrl+p, atom, sublime, textmate, and so on.
Switch betweeen organization and personal account
If you want to switch to an organization account on docker cloud (they call it a namespace), just enter:
To switch back to your personal user account, just leave out the organization name:
You can manually force a refresh by entering
This works for me™, if something does not work for you, just let me know and I'll see if I can help.
I'm planning to add a node search as well, if you're missing features, just issue a PR with your idea :-)
This project is hosted on github at jayniz/alfred-dockercloud.