Docker daemon重启确认 发布者:phpor 2016 年 7 月 11 日 于Docker daemon重启确认留下评论 一不小心把docker daemon重启了,几十个容器瞬间死亡,所以,最好在重启docker daemon时有一个确认信息: read -p "Are you confirm to restart Docker Daemon ?(Y/N): " answer; [[ $answer == "Y" ]] && echo "重启" 1 read -p "Are you confirm to restart Docker Daemon ?(Y/N): " answer; [[ $answer == "Y" ]] && echo "重启"