Skip to content

Commit

Permalink
Allow users of docker run, create to not give name/version (#12234)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle authored Jun 28, 2024
1 parent db7dd4c commit 712e414
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions stubs/docker/docker/models/containers.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 712e414

Please sign in to comment.