What will happen after a systemctl docker restart after this?

These are the server’s architecture:

  1. k3s Master

  2. k3s Worker1

  3. k3s Worker2

  4. Server for rancher installed via docker

What I did was

  • removed the docker container of docker.
  • and
docker run -d --privileged -p 8080:443 --restart=unless-stopped --name rancher-abcd Fxddddddfdf7aecc

They(my team) say when the k3s (or what) restart the next time, all the persistent volumes, secrets, services, will be lost. I don’t quite get how that’s true?

Because I am just joining a cluster via rancher and whatever I do in rancher is also being done in the respective workers/master server. And I suppose the rancher is just an UI to all the stuffs. Whatever I store in rancher, must be persisted in worker/master.

My team member was doing something like

 kubectl get pods -n cattle-system

And said that I fked up.
Any guidance?