diff --git a/stubs/docker/docker/models/containers.pyi b/stubs/docker/docker/models/containers.pyi index 587a92f725f6..a5190adaa9b1 100644 --- a/stubs/docker/docker/models/containers.pyi +++ b/stubs/docker/docker/models/containers.pyi @@ -165,7 +165,7 @@ class ContainerCollection(Collection[Container]): mem_swappiness: int | None = None, memswap_limit: str | int | None = None, mounts: list[Mount] | None = None, - name: str, + name: str | None = None, nano_cpus: int | None = None, network: str | None = None, network_disabled: bool = False, @@ -196,7 +196,7 @@ class ContainerCollection(Collection[Container]): user: str | int | None = None, userns_mode: str | None = None, uts_mode: str | None = None, - version: str, + version: str | None = None, volume_driver: str | None = None, volumes: dict[str, str] | list[str] | None = None, volumes_from: list[str] | None = None, @@ -260,7 +260,7 @@ class ContainerCollection(Collection[Container]): mem_swappiness: int | None = None, memswap_limit: str | int | None = None, mounts: list[Mount] | None = None, - name: str, + name: str | None = None, nano_cpus: int | None = None, network: str | None = None, network_disabled: bool = False, @@ -291,7 +291,7 @@ class ContainerCollection(Collection[Container]): user: str | int | None = None, userns_mode: str | None = None, uts_mode: str | None = None, - version: str, + version: str | None = None, volume_driver: str | None = None, volumes: dict[str, str] | list[str] | None = None, volumes_from: list[str] | None = None, @@ -351,7 +351,7 @@ class ContainerCollection(Collection[Container]): mem_swappiness: int | None = None, memswap_limit: str | int | None = None, mounts: list[Mount] | None = None, - name: str, + name: str | None = None, nano_cpus: int | None = None, network: str | None = None, network_disabled: bool = False, @@ -382,6 +382,7 @@ class ContainerCollection(Collection[Container]): user: str | int | None = None, userns_mode: str | None = None, uts_mode: str | None = None, + version: str | None = None, volume_driver: str | None = None, volumes: dict[str, str] | list[str] | None = None, volumes_from: list[str] | None = None,