title: Refreshing a mounted volume on Docker periodically
body: <p>So I have a docker container up which needs to access a few Shared drive on Windows. These mounts keep expiring after some time and we need to restart the docker containers to make sure we have them mounted again.</p>
  <pre><code>volumes:
    shared-drive:
            driver: local
            driver_opts:
                type: cifs
                o: username=user,password=password,domain=xx
                device: &quot;\\\\xx.xx.xxx.xxx\\path$$&quot;
  </code></pre>
  <p>How do I refresh these volumes periodically?</p>