My recommendation would be using something other than the “raw” docker stop. For example, a stop_docker.sh file which would ssh into the running docke and send the QUIT signal to Kong.
Unfortunately that won’t be possible, since we are running our docker-kong in DCOS, and the way deployments work in DCOS is by sending SIGTERM to containers when they are undeployed.
Currently we are exploring the possibility of intercepting the signal in the docker, but would rather avoid it.