Running into issue updating n8n local host with Docker

Im running into an issue updating n8n locally using Docker. I followed instructions per documentation but and tried several methods using Terminal and within Docker but when updating it doesnt retain the previous data and I have to revert every time to starting from scratch and importing all my workflows and credentials again. It creates an additional container I cant delete.

Any help appreciated

Including the command or the yml file you used would be helpful, could you add it too, please?

Hi there, in order for it to retain the data, you need to create a docker volume for it