diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index f677182f4..b5c118182 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -155,7 +155,7 @@ def get_exposed_port(self, port: int) -> int: return self.get_docker_client().port(self._container.id, port) return port - def with_command(self, command: str) -> Self: + def with_command(self, command: Union[str, list[str]]) -> Self: self._command = command return self