add ensure=(running|latest) parameter
Merge pull request #4 from ulich/master

add ensure=(running|latest) parameter