title: How to create and use docker volumes on Asp core Web app (MVC)
body: <p>I have web app and I'm using docker to deploy it to Linux server. I'm using ASP .NET CORE 2.1, MVC model for my app, and I publish it through Visual studio's integrated Container Registry to docker hub. from my server i pull image, and then run it. Problem is, every time I publish update to my app it resets all files in app, as it should, that's how containers work. But I need some files to stay in server and not to reset every time i update my app, so i need to use volumes. But I can't figure out how to use ASP CORE app and docker volumes, I think i can create them, but how to access them from app ?</p>
  
  <p>I'v tried some methods I found on web,</p>
  
  <p>So normaly I to run docker I pull it from hub.docker with: <code>docker pull mydockerid/appname:tag</code></p>
  
  <p>Then, run it with command: <code>docker run -p 3000:80 mydockerid/appname:tag</code>
  and that's it. </p>
  
  <p>I'v tried : <code>docker run -p 3000:80 -v ~mnt/files/xml:/xml mydockerid/appname:tag</code> </p>
  
  <p>As I understood it it should make docker use server folder, "mnt/files/xml" as folder in my app named "xml", but doesn't work. </p>
  
  <p>I'm also Using Digital ocean and directory "mnt/files/xml" is volume connected to droplet.</p>
  
  <p>Perfect solution would be so I could create docker volume inside droplets volume,  but really any solution that works would be great !</p>
  
  <p>Thanks, for Help !</p>