Factor out error check
Fetch docker version, to check things are working