Ensure networking is up before starting docker

This resolves a problem that I have been having where docker starts before networking is up. See issue #5944 for more details.