Skip to content

[Bug]: Docker.DotNet breaking change #814

@lbruun

Description

@lbruun

Testcontainers version

2.4

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host arch

X86

.NET version

7.0

Docker version

n/a

Docker info

n/a

What happened?

The folks at Docker has introduced some breaking change between v3.125.13 and v.3.125.12 of the Docker DotNet library.

For Testcontainers, this result in the following error on ContainerBuilder().Build():

error CS0012: The type 'CreateContainerParameters' is defined in an assembly that is not referenced. 
You must add a reference to assembly 'Docker.DotNet, Version=3.125.0.0, Culture=neutral, PublicKeyToken=null'. [

Solution at the moment is to explicitly reference NuGet package Docker.DotNet in your project and pin it to version 3.125.12 .

Logging it here for information even though it is likely something that needs to be fixed in the Docker.DotNet project.

Relevant log output

No response

Additional information

No response

Metadata

Metadata

Assignees

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