F
F
FlooDwm2020-08-09 21:27:12
PHP
FlooDwm, 2020-08-09 21:27:12

How to kill a process inside a docker container from under php?

The bottom line is this:
There is a container, it is launched from under php by a button from the browser

system( ‘sudo docker run bla bla bla’);
Everything works fine, it starts, but then I start my process in the container and then I want to kill it.
From under the console docker exec -it ##### kill #### , the process is running, but from under php it does not kill and does not display errors, and I haven’t tried it, it’s not killed and that’s it, tell me where to look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FlooDwm, 2020-08-10
@FlooDwm

the problem is solved, you need to remove the -i flag (interactivity) :)) and everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question