compose icon indicating copy to clipboard operation
compose copied to clipboard

Failed to kill docker-compose process

Open garveen opened this issue 10 years ago • 5 comments

I am writing a plugin which can manage docker-compose in a software. All non-interactive docker-compose commands are working good, except up and logs -f: they have a continuous output.

In my computer, docker-compose uses two process to do all the jobs. If I kill the first which I can get the pid from APIs, the second one will not exit and became a dummy process. This also happened with Windows Task Manager.

Environment: Windows 10 Pro 14393 Docker 1.12.2-beta28(7813) docker-compose 1.8.1, build 004ddae

garveen avatar Oct 19 '16 19:10 garveen

+1 for this issue.

Also seems to be the same for Linux. What is the proper way to terminate "docker-compose logs -f" process that is running in background? Killing the process by PID still leaves container active:

docker-compose logs -f & kill $! #this doesn't work

yaroslav-shabalin avatar Jun 01 '17 12:06 yaroslav-shabalin

Same issue on Windows. Spawned docker-compose logs -f using node child_process.spawn method. Created 2 docker-compose processes. After calling ps.kill() closed only one. When i do same from console, 2 processes also created, but 2 closed after terminating. docker-compose version 1.11.2, build f963d76f Docker version 17.03.1-ce, build c6d412e

pashist avatar Jun 16 '17 13:06 pashist

Experiencing the same here. 2 processes are created, and under some circumstances, the process don't quit.

GregorioDiStefano avatar Jul 19 '17 08:07 GregorioDiStefano

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 10 '19 00:10 stale[bot]

This issue has been automatically closed because it had not recent activity during the stale period.

stale[bot] avatar Oct 17 '19 01:10 stale[bot]