Use Homassistant OS backups in docker


currently I run ha in homassistant os and think about moving to docker. is there a way to use the backup files from homeassistant os in docker?

Config folder is same files between both HAOS and all other install methods

Copy the folder containing configuration.yaml along with all files, folder and hidden folders in same directory and move that to new install configuration folder.