Rather late than never.
I was getting the same error. This error can be misleading, In my case I am using postgres, so in my docker-compose.yml file I added an extra letter S on the image: postgress. So when docker tried to pull this image it could not find it, it resulted in the "volume sharing" error but as we can see the issue was the spelling postgress, this must be postgres (single letter S at the end)
Don't just look at the Error List window on visual studio, also inspect the Outout window, it might contain the actual cause of the volume sharing error, see below: