how to get secrets from broken docker swarm

前端 未结 1 1809
失恋的感觉
失恋的感觉 2021-01-21 03:14

My swarm server is broken(Linux system error), sadly it is only one node.

I read https://docs.docker.com/v17.09/engine/swarm/admin_guide/#back-up-the-swarm

1条回答
  •  粉色の甜心
    2021-01-21 03:40

    It took me few hours today to figure out why docker daemon hangs after

    docker swarm init --force-new-cluster
    

    I believe there is one step missing from the official doc https://docs.docker.com/v17.09/engine/swarm/admin_guide/#restore-from-a-backup

    Because after I removed docker-state.json then ran

    docker swarm init --force-new-cluster --advertise-addr :2377
    

    things work as expect.

    0 讨论(0)
提交回复
热议问题