https://rancher.com/ logo
Title
m

magnificent-jackal-25711

01/04/2023, 9:24 PM
Hey all! I'm new here and noob to the clusters stuff. I followed this document to install rancher on K3s: https://docs.rancherdesktop.io/how-to-guides/rancher-on-rancher-desktop/ Everything works perfect but after I restart my pc and launch rancher desktop I see K3s up in kubectl. But also I see no containers running image in "nerdctl ps" output including the rancher one. So I can't login back using the password I setup. If I run new rancher container with the instruction from docs: nerdctl run --privileged -d --restart=no -p 8080:80 -p 8443:443 rancher/rancher It prompts me for the Bootstrap Password and setting the user password again. What should I do to preserve the user passwrord from the first setup and use it across the reboots?
f

fast-garage-66093

01/05/2023, 10:28 PM
It is probably going to work if you switch the container engine from "containerd" to "moby" and use the
docker
cli instead.
Another thing to do would be to use
--restart=always
, so the container restarts automatically when you restart Rancher Desktop. I haven't tested it yet, so I don't know if this would run into the same issue with
nerdctl
or not.
Using
--restart=always
seems to also bypass the
nerdctl
issue about restarting containers. We have updated the documentation now.
m

magnificent-jackal-25711

01/06/2023, 1:51 PM
works as a charm now, thank Jan!