Wait for SSH port to be available on docker slave.  If using supervisor,

periodically the SSH port is not available when the SSH slave tries to
start and slave launch fails, this seems to solve that.