diff --git a/README.md b/README.md index eeffcc5..433063a 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,14 @@ ok github.com/AtomicJar/testcontainers-cloud-go-example 2.946s The tests in this project create a PostgreSQL database and populate it with sample data. You can [set a fixed port](https://newsletter.testcontainers.com/announcements/set-fixed-ports-to-easily-debug-development-services) for the `postgres` service, then [freeze containers shutdown](https://newsletter.testcontainers.com/announcements/freeze-containers-to-prevent-their-shutdown-while-you-debug) to easily connect to the database from your IDE after your tests run. See if you can inspect the database. Username: `postgres`. Password: `postgres`. - \ No newline at end of file + +### Troubleshooting Testcontainers with WSL + +If you are using Testcontainers in WSL (Windows Subsystem for Linux) and encounter issues related to configuration, ensure that the `.testcontainers.properties` file is located in your WSL home directory (`~`). By default, this file might be placed in your Windows home directory (`C:\Users\your-user`), causing Testcontainers to not detect the correct configuration inside WSL. + +#### Workaround: +Manually copy the `.testcontainers.properties` file from your Windows home to your WSL home: + +```sh +cp /mnt/c/Users/your-user/.testcontainers.properties ~/ +```