title: Is it possible to use and environment variable as docker healthy check
body: <p>I have a custom mysql image. When we run the container, it downloads a mysql dump from our artifactory to load some data. I have the following health check in my docker run command:</p>
  
  <pre><code>--health-cmd='mysql -u myusername -pMyPassword'
  </code></pre>
  
  <p>But what I want to do is to set the health of the container to healthy when the data has been imported, that usually takes around 5 min. One idea I had is maybe set an environment variable, but in that case, I wouldn't know what the health-cmd would be. Or maybe there is a better way to do this? </p>
  
  <p>I am just starting with docker, my knowledge is very limited. </p>