Apperently the ports in Dockerfile, docker-compose.yml and launchSettings.json where not set correctly, it gave the volume sharing error because the port I was trying to use was taken.