MCSManager icon indicating copy to clipboard operation
MCSManager copied to clipboard

[Bug Report] Instance not stoping if using docker compose

Open Searchcat37 opened this issue 9 months ago • 7 comments

Platform

Ubuntu 22.04

Panel Version

10.5.0

Daemon Version (Optional)

4.6.0

Recurrence Probability

100%

Bug Description

  1. Go to an instance that uses a docker-compose.yml file
  2. Click start
  3. Click stop (Set to send ^C)
  4. Terminal thinks app has stopped Image
  5. docker stats shows it is still running Image

However sending ^C to the interactive console instead of using the stop button works perfectly fine when trying to stop the containers Image

Searchcat37 avatar Mar 20 '25 15:03 Searchcat37

Image Image

Check if the command here is ^c, which stands for Ctrl+C

yumao233 avatar Mar 21 '25 07:03 yumao233

I had already said it was set to ^c in my post, here is a screenshot of it

Image

Searchcat37 avatar Mar 21 '25 15:03 Searchcat37

I think I know the reason. Shutting down Docker Compose requires pressing ^C twice, but when you click the "Stop" button, it only sends ^C once, which prevents it from terminating properly.

yumao233 avatar Mar 26 '25 03:03 yumao233

I only press it once though. You press it twice to force kill it.

Searchcat37 avatar Mar 26 '25 03:03 Searchcat37

btw, why u use docker compose with MCSM?There was a better solution is use Portainer or 1Panel to manage this I think 🤔

Muska-Ami avatar Mar 31 '25 08:03 Muska-Ami

MCSM is more like a webshell than a Docker manager. I personally do not recommend starting Docker in MCSM by any method other than the built-in Docker container function.

huangsijun17 avatar Mar 31 '25 09:03 huangsijun17

btw, why u use docker compose with MCSM?There was a better solution is use Portainer or 1Panel to manage this I think 🤔

I want just have everything in panel, rather than having to jump around. Portainer has been a pain and has too many features for what I need, so I used Pufferpanel, however it does not have cron jobs built in.

Searchcat37 avatar Apr 03 '25 18:04 Searchcat37