Reputation: 17
Error I am getting: Severity Code Description Project File Line Suppression State Details Error (active) Volume sharing is not enabled. On the Settings screen in Docker Desktop, click Resources -> Shared Drives, and select the drive(s) or folder(s) containing your project files. For more information, please visit - https://aka.ms/DockerToolsTroubleshooting docker-compose, docker-compose C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 569
with the new version Volume Sharing option is not a thing anymore with WSL2.
Upvotes: -1
Views: 47
Reputation: 17
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.
Upvotes: 0