Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: response from daemon: removal of container x is already in progress on calling Terminate() #2917

Closed
moogacs opened this issue Dec 12, 2024 · 1 comment · Fixed by #2926
Labels
bug An issue with the library

Comments

@moogacs
Copy link
Contributor

moogacs commented Dec 12, 2024

Testcontainers version

0.34.0

Using the latest Testcontainers version?

Yes

Host OS

linux

Host arch

any

Go version

1.22

Docker version

26.0.0 (any)

Docker info

any

What happened?

when using Terminate() function see here , which i assume implemented here because i am using norma docker container

the container get terminated but still reports an error

Error response from daemon: removal of container {xxxx} is already in progress

Relevant log output

Additional information

No response

@moogacs moogacs added the bug An issue with the library label Dec 12, 2024
@stevenh
Copy link
Collaborator

stevenh commented Dec 18, 2024

You can use testcontainers.CleanupContainer to avoid that type cleanup race.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants