Upgrade
Upgrade
Upgrading LibreTranslate involves the following general steps:
-
Review the release notes for the new version of the LibreTranslate Docker image to understand any changes, new features, or breaking changes.
-
Create a backup of your existing LibreTranslate deployment, including the configuration, language models, and any custom data.
-
Pull the updated LibreTranslate Docker image
-
docker pull libretranslate/libretranslate:latest
-
Stop the running LibreTranslate container
-
docker stop libretranslate
-
Remove the existing LibreTranslate container
-
docker rm libretranslate
-
Run the updated LibreTranslate container with the same configuration and options as the previous version
-
docker run -d --name libretranslate -p 5000:5000 libretranslate/libretranslate
-
Verify the updated LibreTranslate deployment by accessing the API and ensuring that all functionality is working as expected