'Update docker settings'

def set_docker_settings(self, init_config, instance):

    self._docker_root = init_config.get('docker_root', '/')
    self.settings = {'version': init_config.get('api_version', DEFAULT_VERSION), 'base_url': instance.get('url', ''), 'timeout': int(init_config.get('timeout', DEFAULT_TIMEOUT))}
    if init_config.get('tls', False):
        client_cert_path = init_config.get('tls_client_cert')
        client_key_path = init_config.get('tls_client_key')
        cacert = init_config.get('tls_cacert')
        verify = init_config.get('tls_verify', False)
        client_cert = None
        if ((client_cert_path is not None) and (client_key_path is not None)):
            client_cert = (client_cert_path, client_key_path)
        verify = (cacert if (cacert is not None) else verify)
        tls_config = tls.TLSConfig(client_cert=client_cert, verify=verify)
        self.settings['tls'] = tls_config
