Added support for capabilities in docker state.
Merge pull request #15988 from rallytime/bp-15919

Backport #15919 to 2014.7