Docker create (rebase of 6907)

Closes #6907

Ping @vieux @unclejack @crosbymichael
That's a good question. Apparently it was already the case on master now. Maybe we can investigate that separately from this PR.