docker: waiting the deploy container be stopped.