Skip to content

[Bug]: When stopping a Linux container in a unit test (running in Azure Pipeline), I get exception #1460

@StefH

Description

@StefH

Testcontainers version

4.5.0

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host arch

x86

.NET version

8

Docker version

-

Docker info

-

What happened?

System.NullReferenceException : Object reference not set to an instance of an object.

Relevant log output

Failed WireMock.Net.Tests.Testcontainers.TestcontainersTests.WireMockContainer_Build_WithImageAsText_And_StartAsync_and_StopAsync [9 s]
   Error Message:
    System.NullReferenceException : Object reference not set to an instance of an object.
   Stack Trace:
      at DotNet.Testcontainers.Containers.DockerContainer.UnsafeStopAsync(CancellationToken ct) in /_/src/Testcontainers/Containers/DockerContainer.cs:line 567
    at DotNet.Testcontainers.Containers.DockerContainer.StopAsync(CancellationToken ct) in /_/src/Testcontainers/Containers/DockerContainer.cs:line 319

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions