0

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

4

1 回答 1

0

就够-v /data:/var/lib/rancher了。

此外,不需要-v /var/lib/mysql:/var/lib/mysql.

于 2019-03-28T22:42:02.520 回答