Make docker-compose-plugin work
Description
In the last month Docker introduced a new way to use compose files with docker. The new way to invoke docker-compose is docker compose
, whereas docker-compose
was the legacy way.
Users having installed only the new plugin (would be docker-compose-plugin
on Ubuntu for example), would run into issues with our scripts, as they only target the legacy docker-compose binary.
Goal
Make both versions work.
Evidence
On a fresh Ubuntu install having only docker and the new docker-compose-plugin installed, i ran into this problem once, although i wasn't involved into Foodsharing development back then.
Solution
Write a wrapper function choosing the available solution.