Docker and Discourse upgrade

What is the correct way to upgrade Docker and Discourse? I tried clicking on the Upgrade buttons in the Web Admin section, but it messed up the image and I had to start with a fresh install. I would like to avoid that because I didn’t have a backup.

I clicked on the Docker upgrade because it was required in order to upgrade the Discourse.

I’m running on DigitalOcean and followed the steps here to install:

Please see