I’m learning docker for all of about 8 hours and am confused about something.
If I run a simple application in Ubuntu that all runs in a single directory, then convert this application into a container, and all data and config is stored in that same container then what happens if I lose the hardware and pull my docker container onto new hardware as any changes since creation will be lost won’t they? What am I missing?
Can I create an automatic take to push the container back out like a daily backup and then just pull the latest version on boot or……
start a container from that image, and make NO manual changes to that container.
if you want to save data from that container, map a local folder into the container (Use volumes | Docker Documentation) and take backup of that local folder