I create docker nfs volume ,
use command:
docker volume create --driver local
–opt type=nfs
–opt o=addr=10.50.2.12,rw
–opt device=:/home/localadmin/rancher
rancher
And run ranccher 2.0 , mount nfs volume to /var/lib/rancher
use command:
docker run -d --restart=unless-stopped --name rancher -p 80:80 -p 443:443 -v rancher:/var/lib/rancher rancher/rancher
But rancher can’t start, the log message was:
etcdserver: another etcd process is using “/var/lib/rancher/etcd/member/snap/db” and holds the file lock.
etcdserver: waiting for it to exit before starting…
mvcc/backend: cannot open database at /var/lib/rancher/etcd/member/snap/db (no locks available)
panic: cannot open database at /var/lib/rancher/etcd/member/snap/db (no locks available)
Looks like etcd can’t access data,
Does rancher can’t store data in docker nfs volume??