rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.45k stars 656 forks source link

Is it possible to delete ROS stateful data? #2907

Open junkiebev opened 5 years ago

junkiebev commented 5 years ago

RancherOS Version: 1.5.4

Where are you running RancherOS? VMWare and Azure

Is it possible to delete the state directories and have ROS come back after a reboot as it would after a fresh install? Rancher 2.x puts so many things in so many places, which makes it hard to test releases your because I'm required to format/re-create the VMs in remove artifacts.

niusmallnan commented 5 years ago

RancherOS can provide a way to run entirely in memory. That is, you can boot from ISO, but don't run ros install. However, I am not sure that Kubernetes can work.

I suggest you delete the docker's data-root directory in runcmd or rc.local. https://rancher.com/docs/os/v1.x/en/installation/configuration/running-commands/

junkiebev commented 5 years ago

There isn't some PXE-ish setup to disable the preservation of state and just retain the config?