From 712e4146ef255f14ecf396aac4996cdbef708312 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Fri, 28 Jun 2024 12:29:20 +0100 Subject: [PATCH] Allow users of docker run, create to not give name/version (#12234) --- stubs/docker/docker/models/containers.pyi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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,