def METHOD_NAME(
    self,
    container: docker.models.containers.Container,
    alias: list[str] | None = None,
    ipv4: IPv4Address | None = None,
) -> None:
    """Attach container to Supervisor network.
    Need run inside executor.
    """
    ipv4_address = str(ipv4) if ipv4 else None
    # Reload Network information
    with suppress(docker.errors.DockerException, requests.RequestException):
        self.network.reload()
    # Check stale Network
    if container.name in (
        val.get("Name") for val in self.network.attrs.get("Containers", {}).values()
    ):
        self.stale_cleanup(container.name)
    # Attach Network
    try:
        self.network.connect(container, aliases=alias, ipv4_address=ipv4_address)
    except docker.errors.APIError as err:
        raise DockerError(
            f"Can't link container to hassio-net: {err}", _LOGGER.error
        ) from err