Improve and export docker conditions

Report connection errors with a better message.