These are the steps you need to take:
- Backup your existing database.
- Move/copy your blobs and generated folders to the new destination if necessary.
- Install stash on the new machine (docker or otherwise).
- Point your blobs and generated paths for the correct folders.
- Point your library to the folders with your content like you had before.
- Once Stash is set up (and still empty), close stash/the docker container.
- Also close your Stash of your previous installation and copy over your stash-go.sqlite file from your old install to your new installation, replacing the existing (empty) database.
- Start stash and see if everything is there.
- If the paths are different now than they were before, run a scan task.
The scan will update any paths from the previous installation (like when you are changing from a windows to a linux/docker installation).