saltstack/salt — pull request #16039 by askholme (2014-09-22 20:22:55+00:00)
Title: improved running and present commands

The current dockerio state module functionality closely reassembles the docker remote API, which actually makes common docker workflows relatively cumbersome.

Especially one need to use two commands (with somewhat overlapping data) in order to create and run a container.

Additionally raw shell commands is needed to test a containers image version even though that is a quite typical deployment workflow (pull latest image, test container for running latest image, delete+recreate if not latest).

This PR addresses both by:
Extending the running command to have the combined functionality of installed and running. yaml syntax is made to be backwards compatible with current version, but also supports the syntax of installed.
Extending the present command to support check for specific image and latest version. yaml input is also backwards compatible here