Skip to content

Commit

Permalink
fix start testcontainers fail bug
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 committed Apr 30, 2024
1 parent d1bec53 commit 2af7ca7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/testcontainers/testcontainers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ type TestcontainerApps struct {
// NewTestcontainerApps returns new instance of TestcontainerApps struct
func NewTestcontainerApps() *TestcontainerApps {
timestamp := time.Now().Nanosecond()
// In order to solve the problem of "creating reaper failed: failed to create container"
// refer to https://github.com/testcontainers/testcontainers-go/issues/2172
os.Setenv("TESTCONTAINERS_RYUK_DISABLED", "true")
return &TestcontainerApps{
Timestamp: timestamp,
}
Expand Down

0 comments on commit 2af7ca7

Please sign in to comment.