Reputation: 445
I started to use RancherOS with rancher 2.*
I was wondering which volume should I mount to keep the config after a hard reboot.
Here is the command I'm using to launch rancher.
docker run -d --restart=unless-stopped --name="rancher" -p 8080:80 -p 8443:443 -v /var/lib/mysql:/var/lib/mysql -v /home/rancher/ca.crt:/var/lib/rancher/etc/ssl/ca.crt -v /data:/var/lib/rancher rancher/rancher:latest
Thanks
Upvotes: 0
Views: 512
Reputation: 1960
Just -v /data:/var/lib/rancher
is enough.
Also, there is no need for -v /var/lib/mysql:/var/lib/mysql
.
Upvotes: 0