docker.el icon indicating copy to clipboard operation
docker.el copied to clipboard

Better Docker Compose support

Open unmonoqueteclea opened this issue 3 years ago • 2 comments

Hey, I am planning to add a new option to list all the Docker Compose projects (https://docs.docker.com/engine/reference/commandline/compose_ls/) with their status. I could add keybindings to start or stop their containers, and even a keybinding to show all the containers from a specific compose project.

Do you consider this could be approved and eventually be merged?

unmonoqueteclea avatar Apr 22 '22 09:04 unmonoqueteclea

Hello,

Yes sure, would that work a bit like projectile? Or more like a tabulated list of previously used docker-compose projets with columns summarizing the running/stopped/etc containers?

I'm a bit worried that you duplicate the functionality, it'd be better if you find a way to reuse for example docker-compose-start by silently setting the correct values to docker-compose-arguments, by reading the transient history for that project.

Silex avatar Apr 24 '22 11:04 Silex

My idea was doing a tabulated list of docker-compose projects.

But maybe, just offering a way to complete known projects when doing things like docker-compose-startor docker-compose-stopis fine. ~~The problem with current docker-compose implementation in docker.el is that you need to be in the directory that contains the docker-compose.yaml file~~

EDIT: I was wrong, you can specify a project name. So let's see if I can offer that way to complete known projects

unmonoqueteclea avatar Apr 25 '22 08:04 unmonoqueteclea