What is the best way to generate license for docker containerized applications?

Hi, i am working on a Django based web application. we want to containerize this application and looking for best way of locking an application license with container.

Any thoughts would be greatly helpful.

I asked a similar question long ago and no one responded.
The tricky part is managing the state of the clients deployment of your container app.
Our product HarperDB stores the license information in a specific directory for that instance. To make that persist the client must run docker with a bind mount, i.e. docker run -v <client host directory or docker volume>:<container path to license information> image:tag
I have not come up with an alternative, unless your application pings a remote resource where the application signs that user in to your central management system to give the ephemeral container data about the license that client has purchased?
Hope this helps!
Continue to be diligent.