docker 及mysql开机自启

1,设置docker开机自启

systemctl enable docker;

启动docker;

systemctl start docker;

关闭docker;

systemclt stop docker;

重启docker

systemctl restart docker;

设置mysql 开机自启;

sudo docker update mysql-springnow --restart=always   --mysql-springnow mysql 镜像名称


你可能感兴趣的:(docker 及mysql开机自启)