B
B
bozuriciyu2020-12-30 03:25:36
Docker
bozuriciyu, 2020-12-30 03:25:36

How is kill different from stop?

What is the correct way to stop a container and what is the difference between docker kill and docker stop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2020-12-30
@bozuriciyu

docker stop sends a SIGTERM signal and only kills the process after a while if it hasn't exited "in an amicable way". And docker kill - immediately sends SIGKILL and beats without unnecessary expectations. Or another signal that can be specified as a parameter.
https://docs.docker.com/engine/reference/commandli...
https://docs.docker.com/engine/reference/commandli...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question