Docker Stop Vs Docker Kill

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

docker pull nginx
docker run --name akilan -d nginx
docker run --name akilan2 -d nginx
docker stop --time=30 akilan2
docker kill --time=30 akilan -------> Will not execute
docker kill akilan ------> Will execute

docker stop will accept the time in other words it’ll not force the process to stop. But the docker kill will force the running process to stop.

When we use the command docker stop on the stopped container, it will not throw any error. But if we try using the docker kill command on the stopped container it will throw an error.