naraesk / plasma-docker

Plasmoid for KDE Plasma to control docker containers
https://store.kde.org/p/1198473/
GNU General Public License v3.0
43 stars 4 forks source link

Add support for new docker-compose #17

Open kionez opened 1 year ago

kionez commented 1 year ago

I have not found the exact version since when this behaviour started, but in the latest releases of docker-compose the command ps --services no longer returns all services, it is necessary to add --all to the command, e.g. with the patch:

--- plasma-docker-2.2.0.orig/process/process.cpp        2020-03-06 23:07:42.000000000 +0100
+++ plasma-docker-2.2.0/process/process.cpp     2023-01-02 10:56:54.637723966 +0100
@@ -55,7 +55,7 @@

 QStringList Process::getServices(const QString &file) {
     QStringList arguments;
-    arguments << "ps" << "--services";
+    arguments << "ps" << "--services" << "--all";
     runDockerCompose(file, arguments);
     waitForFinished();
     QString composeOutput(readAllStandardOutput());