License activation in Docker
You can activate a WProofreader license in two ways:
during image build (recommended)
on container startup (trial-friendly)
Option 1 (recommended): Activate during image build
Pass the license ticket as a build argument:
--build-arg WPR_LICENSE_TICKET_ID=<license_ticket_id>
This persists the activated license into the image. Every container started from that image will have a valid license.
This is the recommended approach for production. It avoids repeating activation for each container.
Where to use it:
Option 2: Activate on container startup
Pass the license ticket as an environment variable:
--env WPR_LICENSE_TICKET_ID=<license_ticket_id>
Example:
This activation requires Internet access. It is not recommended for production. Use it for trials, especially when you run the public Docker Hub image.
Verify license status
Use one of these methods:
API-based health and remaining time:
API-based reason when the license is not valid:
Log-based validation:
Common pitfalls
Trial activation on startup needs outbound connectivity. It can fail on locked-down hosts.
If you run multiple containers, build-time activation is simpler. You avoid activating per container.
A license is tied to the product version. If you persist the license file in a mounted volume and then move to a newer image, the stored license no longer matches and the service stops serving requests. Re-activate after the upgrade. See Upgrade application version. Build-time activation is not affected, because a new image is activated during its own build.
Related pages
Last updated
Was this helpful?

