Docker create (rebase of 6907)

Closes #6907

Ping @vieux @unclejack @crosbymichael
@unclejack The errors you mentioned are not gone, they just have been inlined in createContainer here. If you want I can bring the error variable back instead of inlining.