Based on my test, when I scale down a service, the container is stopped in 1 seconds after SIGTERM is sent to container. But I'd like to give it more timeout to gracefully shutting down my app. I see docker compose has the --timeout parameter to control the timeout but docker swarm not.
Based on my test, when I scale down a service, the container is stopped in 1 seconds after SIGTERM is sent to container. But I'd like to give it more timeout to gracefully shutting down my app. I see
docker compose
has the--timeout
parameter to control the timeout but docker swarm not.