Upgrade between versions, currently from 2.3 to 2.4 in docker

Guys, in the past I tried to migrate from 1.3 to 2.1 and when activating the nodes with the new image, the security indices broke and I ended up being forced to mount a new cluster, with 2.3, and manually migrate all the beginnings, with mapping and settings.

At the moment we have a complete cluster in 2.3 and we want to migrate to 2.4, using docker.

How should I do? Simply pull the new image and change the docker-compose? Is any action required?
I searched the forum and didn’t find anything specific about migration between versions, in fact I found people suggesting documentation in this regard.

I’m very grateful for any help!


Relevant Logs or Screenshots:

I updated an RPM install from 2.3 to 2.4 yesterday and it was all straightforward as long as the configurations do not change when you use the new docker image.