INNER CODE UNIT · Python

_should_skip_container

Minituff/nautical-backup · app/backup.py:174

    def _should_skip_container(self, c: Container) -> bool:
        """Use logic to determine if a container should be skipped by nautical completely"""

        SELF_CONTAINER_ID = self.env.SELF_CONTAINER_ID  # Used to skip self

        try:
            # Attempt to pull info from container. Skip if not found
            info = str(c.name) + " " + str(c.id) + " " + str(c.image) + " " + str(c.labels)
        except ImageNotFound as e:
            self._record_container_skipped(
                c, "image_not_found", "Skipping container because its info was not found.", level="WARN"
            )
            return True

        if "minituff/nautical-backup" in str(c.image):
            self._record_container_skipped(
                c,
                "nautical_backup_image",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…