@wrap_exception('Unable to use Docker')
    def test(self):
        with closing(self._create_connection()) as conn:
            conn.request('GET', '/version')
            version_response = conn.getresponse()
            if version_response.status != 200:
                raise DockerException(version_response.read())
            try:
                version_info = json.loads(version_response.read())
            except:
                raise DockerException('Invalid version information')
            if version_info['ApiVersion'] < '1.17':
                raise DockerException('Please upgrade your version of Docker')
dataset/ETHPy150Open codalab/codalab-cli/worker/docker_client.py/DockerClient.test/original