Skip to content

Commit 937e02a

Browse files
committed
Give seq containers random names
1 parent 9b6678e commit 937e02a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/SeqCli.EndToEnd/Support/TestConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public CaptiveProcess SpawnServerProcess(string storagePath)
4343
var commandWithArgs = $"run --listen=\"{ServerListenUrl}\" --storage=\"{storagePath}\"";
4444
if (_args.UseDockerSeq())
4545
{
46-
return new CaptiveProcess("docker", $"run --name seq -it --rm -e ACCEPT_EULA=Y -p {ServerListenPort}:80 datalust/seq:latest", stopCommandFullExePath: "docker", stopCommandArgs: "stop seq");
46+
var containerName = Guid.NewGuid().ToString("n");
47+
return new CaptiveProcess("docker", $"run --name {containerName} -it --rm -e ACCEPT_EULA=Y -p {ServerListenPort}:80 datalust/seq:latest", stopCommandFullExePath: "docker", stopCommandArgs: $"stop {containerName}");
4748
}
4849
return new CaptiveProcess("seq", commandWithArgs);
4950
}

0 commit comments

Comments
 (0)