Skip to content

Commit dc21a00

Browse files
committed
fix: trim leading slash from container name in PopulateInstanceDetailsAsync
1 parent 4743b63 commit dc21a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/TestcontainersDockerManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private async Task PopulateInstanceDetailsAsync()
173173
}
174174

175175
Instance.Id = _container.Id;
176-
Instance.Name = _container.Name;
176+
Instance.Name = _container.Name.TrimStart('/');
177177
Instance.IsRunning = _container.State == TestcontainersStates.Running;
178178

179179
// Get the mapped port for the main internal port

0 commit comments

Comments
 (0)