Moving local to new a machine


I Need to move all my local sites to a new desktop machine is there a way to copy all the files and docker image across and have them all work? I have a lot of sites so exporting each one manually would take a long time. I have a time machine backup of all the files is there anyway i can restore on a new machine easily? (if so what do i have to move) Also some of the sql seems out of date like it hasn’t saved the latest into the sql folder which makes importing maybe not an option.