Docker nextcloud upgrade data folder for each user

I am new to nextcloud.
Today I did an upgrade on the nextcloud within docker,
, the new container is showing the same page like fresh installation(which looks ok)
however, I could not use the admin user that I created before.
I could not access the user and user data folder and have to manual copied all the data.
And run a occ file scan.

Is there any step that I missed? Many thanks.

The step I took,

  1. Stop the current container, and deleted it with the image.
  2. Pull the latest image.
  3. Docker run the image with the volume that sitting on host. Same docker run command as I used for fresh installation.