Docker containers can be updated using
docker pull and
Follow these steps:
Ensure that the container you want to update is running. If the container is not running, start it with
docker start <container-name>.
docker pull <image-name>
to download the latest image from the registry.
docker restart <container-name>
to restart the container and apply the changes.
That's it! Your container has been successfully updated to the latest version.