Docker create (rebase of 6907)

Closes #6907

Ping @vieux @unclejack @crosbymichael
As for me it was even slightly better in master :) but okay, if you like this...