Description: Important: Installation via "hot new stuff" is not possible. Please, clone the GitHub repository and build the plasmoid as described in the README or you a package, if available.
This is a simple plasma applet for KDE Plasma 5 to control docker containers via docker-compose. It is not designed to be a complete user interface for docker, but it provides an convenient way to start (docker-compose up) and stop (docker-compose stop) selected containers. I maid this for my own convenience and it only has a minimal ui. Feel free to open an issue if you want more features and I'll have a look if I might find some time.
# Features • start and stop stacks (docker-compose up and docker compose stop) • start and stop services (docker-compose up SERVICE and docker compose stop SERVICE) • start shell for services (docker-compose exec SERVICE sh) • open public port in browser • edit compose file in default text editor • show log files (docker-compose logs) • updates automatically if status changed externally (delay up to 30s)
For more details and installation instructions please have a look at the GitHub repository. All activity happens there.
It sounds interesting, but I noticed that every time I "stop" the containers they are actually deleted
Also, some containers failed to start and I don't know where to find the logs
Sorry you are right. When I use docker-compose from commandline I usually do up and then stop, now down.
Start would create (if not existing) the resources,stop will just stop containers without destroying everything.
It is the most useful behavior in my case but I think it's individual.
It would be nice to have the chance to configure the "switch" commands using create, start, stop or whatever
Ratings & Comments
7 Comments
It sounds interesting, but I noticed that every time I "stop" the containers they are actually deleted Also, some containers failed to start and I don't know where to find the logs
This is the intented behaviour of docker-compose down: https://docs.docker.com/compose/reference/down/ What behaviour do you want or expect?
Sorry you are right. When I use docker-compose from commandline I usually do up and then stop, now down. Start would create (if not existing) the resources,stop will just stop containers without destroying everything. It is the most useful behavior in my case but I think it's individual. It would be nice to have the chance to configure the "switch" commands using create, start, stop or whatever
Alright, sounds useful and it's not hard to implement. Most challenging part will be to find a good UI for this
If I may suggest, I think the minimal UI is ok. Just put in settings the command to launch with the switch
It took some time, but the new version has an improved UI and uses docker-compose stop :-)
9 TY!