def check_docker_access(self):
try:<EOL><INDENT>if self.client is None:<EOL><INDENT>self.client = docker.from_env()<EOL><DEDENT>self.client.ping()  <EOL><DEDENT>except ConnectionError as e:<EOL><INDENT>logger.exception(e)<EOL>raise BuildError("<STR_LIT>")<EOL><DEDENT>
Creates a :class:`DockerClient <docker.client.DockerClient>` for the instance and checks the connection.

        :raise BuildError: If docker isn't accessible by the current user.