ols4
ols4 copied to clipboard
./test_api.sh fails
Docker version: 20.10.21, build baeda1f
Docker-compose version: docker-compose version 1.25.0, build unknown
Here is the error msg:

I think your Docker Compose is old. I have:
docker-compose version 1.29.2, build 5becea4c
The latest version actually seems to be 2.12.2 so maybe I need to update too!
We seem to be running Docker compose v1 and v2. Is that necessary or accidental?
Neither necessary nor accidental, just contemporary :D It looks like v2 only came out a few months ago, which is long after our Compose file was written. I'll give v2 a go and see if it works.
Oh sorry I read your comment wrong. I see you mean that we use both.
When I started out I was using docker compose and then we changed it to docker-compose because it didn't work on your machine. I did not realise the former was v2 and the latter was v1, I thought it was an alias. I guess we should now consolidate on docker compose (v2).
@udp Here is a reminder of this annoying issue on Linux. I will really appreciate your help with it. Currently running api tests on Linux is not working because docker causes output directories to become owned by root.
This SO issue seems to deal with exactly this problem: https://stackoverflow.com/questions/51973179/docker-mount-volumes-as-root/69507070#69507070