Cannot open wallet on new device

I have set up the peercoin docker container.

When starting it up without any settings it runs fine and connects to the network and downloads all the blocks. I have shut it down and copied over the wallet I had when running the server on a rasperrypi. I updated the settings.json file but as soon as I start up the container I get this message:
Error: SQLiteDatabase: Unable to obtain an exclusive lock on the database, is it being used by another instance of Peercoin?

I definitely do not have any other instance of peercoin running. As a result it just gets itself into a reboot loop and just keeps shutting down.

I have tried the wallet on my windows machine it loads up perfectly fine and I am able to get info on the wallet (when I detach the wallet from the qt client)

I have even take the wallet file from my windows qt client (after closing it) and copying it over to the docker container and trying again, but still the same issue.

If I load up the wallet on the original Raspberrypi I have it loads up perfectly fine.

Any ideas on how to get this wallet to work?