John Winston
John Winston

Reputation: 1471

Whats the differences between docker-compose down and docker-compose kill?

What is the differences between docker-compose down and docker-compose kill? Are they identical?

Upvotes: 0

Views: 288

Answers (1)

cam
cam

Reputation: 5198

down will wait for containers/services to exit "gracefully" while kill will send SIGKILL signal to stop services immediately.

From docker-compose down:

Stops containers and removes containers, networks, volumes, and images created by up.

From docker-compose kill:

Forces running containers to stop by sending a SIGKILL signal. Optionally the signal can be passed, for example:

docker-compose kill -s SIGINT

Upvotes: 1

Related Questions