title: Using Kubernetes' hooks
body: <p>I would like to try Kubernetes' hooks but I didn't find any example how I should do it. As far as I know, with this hooks I can run bash scripts in freshly created containers and prior to terminate them.</p>
  
  <p>I've found just a short <a href="http://kubernetes.io/docs/user-guide/container-environment/" rel="noreferrer">documentation</a> which say this is possible but that's all.</p>
  
  <p>Do somebody have an example or something useful info?</p>
  
  <p>Thanks in advance.</p>