title: Jenkins on Docker - Persist data
body: <p>I have a docker container with a jenkins installation.
  In order to persist the jenkins jobs, etc i have attached a disk and told jenkins to use it. No problem so far. </p>
  
  <p>Now i have ssh into the machine to install the dotnet core cli. I have installed dotnet on the attached disk. After that a run </p>
  
  <pre><code>ln -s /dev/myDisk/dotnet/dotnet /usr/local/bin
  </code></pre>
  
  <p>to "register" the command. Works as expected. But if i restart the node "dotnet" is no longer in the /usr/local folder. </p>
  
  <p>It makes all sense to me. </p>
  
  <p>I have tried to find something but had no luck.</p>
  
  <p>How can i run a script if the container starts or persist this data too ?</p>