deprecate hostname argument

not used, not documented either.
Make sure docker.run return the expected dictionary
script was an alias of run, so deprecate it
Add test for states.dockerio.run
declare encoding
Merge pull request #10776 from ticosax/fix-states.dockerio.run

Fix states.dockerio.run