Doing docker-compose stop ...
or docker-compose down
will stop containers gracefully. However, if you remove services from docker-compose.yml and do docker-compose up -d
it seems to shut those services down hard without any time for tear down inside the container. Is this intentional? We have a use case where we want to remove the services but still have them being gracefully shut down. Do we have to invoke docker-compose stop
first and then update docker-compose.yml and do docker-compose up -d
?
Thanks!