Docker process - nice stop stop - apart from killing

Hi,

Is there a way , that I can automate Docker engine, to do clean stop - everytime - during the time - I shutdown host server ( linux machine)…!!! Ive noticed my docker process were getting killed, everytime

docker --version
Docker version 1.12.5, build 047e51b/1.12.5

uname -a
Linux dkdc2osuprdl001 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux