docker/docker — pull request #9671 by albers (2014-12-15 20:12:18+00:00)
Title: Refactor completion for docker run and docker create

`_docker_run` and `_docker_create` had only one differing line.

This refactoring features:

- direct completion for both commands to the same function
- factor out the common arguments, sort & format them nicely
- compute the argument for _docker_pos_first_nonflag.