1,設(shè)置docker開(kāi)機(jī)自啟
systemctl enable docker;
啟動(dòng)docker;
systemctl start docker;
關(guān)閉docker;
systemclt stop docker;
重啟docker
systemctl restart docker;
設(shè)置mysql 開(kāi)機(jī)自啟;
sudo docker update mysql-springnow --restart=always? ?--mysql-springnow mysql 鏡像名稱