adding subshell to kill docker so that nginx has been reloaded and had time