Automatically add docker socket with --privileged

Fixes #7841