DockStation / dockstation

DockStation is developer-centric application to managing projects based on Docker. Instead of lots of CLI commands you can monitor, configure, and manage services and containers using just a GUI.
https://dockstation.io/
2.14k stars 106 forks source link

Please add "docker-compose down" button to the UI #227

Open qiushihe opened 4 years ago

qiushihe commented 4 years ago

I am aware of this ticket: https://github.com/DockStation/dockstation/issues/143 however the explanation given in that ticket is unfortunately not correct, because the "Stop" button on the UI actually runs docker-compose stop which is not the same as running docker-compose down.

If docker-compose down is indeed executed already, then manually running it again in a terminal should produce these output:

$ docker-compose down
Removing network my-project_default
WARNING: Network my-project_default not found.

However after clicking the "Stop" button on the UI, then manually running docker-compose down in a terminal, I see these output:

$ docker-compose down
Removing my-project_container-a_1 ... done
Removing my-project_container-b_1 ... done
Removing my-project_container-c_1 ... done
Removing network my-project_default

... which suggest that the "Stop" button didn't run docker-compose down and instead ran docker-compose stop.

So, please add "docker-compose down" button to the UI.

Thanks.

qiushihe commented 4 years ago

Also, I realized the "Remove" button has an option to delete containers. However that's also not what I wanted: I don't want to remove the project from DockStation; I want to keep the project in DockStation but have the ability to run docker-compose down to remove the containers. Because it is not the case that the only time I would want to remove containers is when I want to remove the project. Sometimes, I just want to remove containers (for whatever reason: cleanup, rebuilding, debugging, etc.) without removing the project.