How get docker event info inside the container ( i.e if container restart some env variable tell us about it )

we need the info in entrypoint.sh about the docker event i.e is restart /deployed