报错日志如下
2020-02-27T14:10:55.075433Z 0 [ERROR] WSREP: It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 .
2020-02-27T14:10:55.075436Z 0 [ERROR] WSREP: Provider/Node (gcomm://) failed to establish connection with cluster (reason: 7)
2020-02-27T14:10:55.075438Z 0 [ERROR] Aborting
找到数据存储的目录
# 如我存储数据的目录是
/var/lib/docker/volumes/haoke-v1/_data
修改grastate.dat
将其中的safe_to_bootstrap修改为1
safe_to_bootstrap: 1
重启即可