testcontainers-go
testcontainers-go copied to clipboard
[Bug]: Creation of DockerContainer results invalid state
Testcontainers version
0.32.0
Using the latest Testcontainers version?
Yes
Host OS
N/A
Host arch
N/A
Go version
N/A
Docker version
N/A
Docker info
N/A
What happened?
Containers created by compose module result in an invalid state due to private fields.
Relevant log output
No response
Additional information
We should look at making all fields private and exposing constructors such as the currently private containerFromDockerResponse.
I tripped over this as I added an optimisation check using isRunning at the top of Stop, but this caused failures in TestDockerComposeAPIWithStopServices because the instance created wasn't fully initialised.