diff --git a/localstack-core/localstack/utils/container_utils/docker_cmd_client.py b/localstack-core/localstack/utils/container_utils/docker_cmd_client.py index d83bccb625253..ad053490f0839 100644 --- a/localstack-core/localstack/utils/container_utils/docker_cmd_client.py +++ b/localstack-core/localstack/utils/container_utils/docker_cmd_client.py @@ -470,7 +470,7 @@ def stream_container_logs(self, container_name_or_id: str) -> CancellableStream: self.inspect_container(container_name_or_id) # guard to check whether container is there cmd = self._docker_cmd() - cmd += ["logs", container_name_or_id, "--follow"] + cmd += ["logs", "--follow", container_name_or_id] process: subprocess.Popen = run( cmd, asynchronous=True, outfile=subprocess.PIPE, stderr=subprocess.STDOUT