def is_mount_permission_error()

in composer_local_dev/environment.py [0:0]


def is_mount_permission_error(error: docker_errors.APIError) -> bool:
    """Checks if error is possibly a Docker mount permission error."""
    return (
            error.is_client_error()
            and error.response.status_code == constants.BAD_REQUEST_ERROR_CODE
            and "invalid mount config" in error.explanation
    )