How to update version on docker

Hello team,
Im newbie so I want to as about update version docker I have openfire follow this link https://hub.docker.com/r/nasqueron/openfire
and this is version is 4.9.2 os what if Openfire update to 4.9.3 or 4.10.1 how can I update to those version ?
Best regards,

Hello! This is a question for the maintainer of that Docker image, I think (it is not maintained by us). Generally speaking, I would expect Docker containers to persist data outside of the container. That would mean that when running a container that uses a newer version of Openfire would trigger the automatic update that’s part of Openfire. I think that will ‘just work’ but I’ve not tested this at all.

When a new version of Openfire is released, there can be some delay before a new image version is published. Once that’s done, you can pull again the image, delete the old container (see below) and relaunch a new one.

You can also build a new image yourself by cloning the source repository, running the update script in the utils folder, then call docker build.

The guus remark about the data is extremely important: the image defines volumes to allow you to store data outside this container, either on a folder on your Docker host, either as another volume container.

Please do extensive tests by destroying and recreating your container to ensure you’ve persistent data before using your instance in production, as it’s tricky at first. For example, if you just use docker run without any volume configuration (-v), data wouldn’t persist.

You can have a look here to get an example of the options to pass to your docker run command or your deployment solution:
https://devcentral.nasqueron.org/source/operations/browse/main/roles/paas-docker/containers/openfire.sls$38

From there, I’d suggest to keep things simple to use a mapping like:
-v /path/on/your/docker/host:/var/lib/openfire. With that, you’ve the warranty you’ll be able to pass that folder around when you relaunch the container.