I cannot imagine how those things could all be true. I can’t make sense of it.
If you’re getting an error when you access the site how are you seeing the upgrade page?
And if you did build a new image then you can’t have an old one. But doing a git pull isn’t enough, you need to build and launch a new image. It sounds like you’re still running the old one.