skip to Main Content

Docker – testcontainers: how to fix bind source path does not exist

I'm trying to run a container using testcontainers. Here is my code: func createContainer(ctx context.Context) (testcontainers.Container, *gorm.DB, string, error) { var env = map[string]string{ "POSTGRES_PASSWORD": DbPass, "POSTGRES_USER": DbUser, "POSTGRES_DB": DbName, } var port = "5432/tcp" path := `C:/Desktop/Folder/golang/TgBotReminder/internal/db/postgresql/migration/notes.sql` req :=…

VIEW QUESTION
Back To Top
Search