一不小心把docker daemon重启了,几十个容器瞬间死亡,所以,最好在重启docker daemon时有一个确认信息:
1 |
read -p "Are you confirm to restart Docker Daemon ?(Y/N): " answer; [[ $answer == "Y" ]] && echo "重启" |
DevOps
一不小心把docker daemon重启了,几十个容器瞬间死亡,所以,最好在重启docker daemon时有一个确认信息:
1 |
read -p "Are you confirm to restart Docker Daemon ?(Y/N): " answer; [[ $answer == "Y" ]] && echo "重启" |