• 请求帮助
  • docker部署的莫名崩溃了,容器没了,挂载的.halo还在,怎么恢复数据

今天上自己的网站发现一直转圈圈,然后我就重启了一下容器
结果报错:
54cf0d856056f77d4d68d0cc1c64558630a2db9085da2f1838cae9717fe8aea0
docker: Error response from daemon: driver failed programming external connectivity on endpoint halo (7cadd290c4d970e0ff51a84f4d8ebbab217d8e34f4830b5d22792d34109ec4a7): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8090 -j DNAT --to-destination 172.17.0.2:8090 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).

想知道能不能恢复数据

.halo文件在的话,数据应该没事,试试文档里的升级命令
docker stop halo
docker rm -f halo
cp -r ~/.halo ~/.halo.1.4.16 注意这边路径和你.halo的路径保持一致
docker pull halohub/halo:1.4.17
docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo --restart=unless-stopped halohub/halo:1.4.17