Could not find a valid Docker environment

You are running an older version of testcontainers, which is not compatible with docker v29, which your Docker Desktop version provides under the hood. If you want to stick with 1.x, you will need to use at least 1.21.4

Update: I will move the topic to the testcontainers category, as it’s a problem with using testcontainers.