It might have been answered, but I failed to come across such answer. So any advise would be highly appreciated!
I am trying to build an image which, once deployed into container, could report back about its usage. Basically, I would like to know about how many times and how often my image is being used. I would like to do it in a way where no matter what users do (or almost no matter) - this tracking beacon is triggered.
I tried using entrypoint, but that is fragile as users of my image might decide to override it with their own start up sequence and my steps (that do reporting) won’t be triggered.
I am thinking about having some kind of a cron job running in container after start up but have not figured out how to set Dockerfile in a way that would enable such cron-like daemon to start in running container. Maybe someone already solved similar problem?