Closed pragnagopa closed 2 years ago
From https://github.com/Azure/azure-functions-docker/issues/631#issuecomment-1089242394
@7amou3 & @tomas-blanarik what is your VS version? The docker compose support for Azure Functions is added in 17.2 Preview 2. You should be able to add Container Orchestration support for your Func project in the supported VS version.
tagging @vijayrkn / @ravipal FYI
The docker compose support for Azure Functions is added in 17.2 Preview 2.
(Copying from https://github.com/Azure/azure-functions-docker/issues/631) I'm trying to add an Azure Function project to a docker-compose file created in Visual Studio 2022 but this causes the solution to fail to build (Docker for Windows 4.5.1 (74721), with WSL2 support enabled, running in Linux container mode on Windows 11 Pro)
Steps to reproduce:
At this point the solution builds debugging works for the web or func app in docker or docker-compose - all good.
When 'Func' project is added manually to docker-compose.yml the solution no longer builds However, I can run docker-compose fine from the command line:
docker-compose -f docker-compose.yml up
and both Web and Func app start up fine.My docker-compose.yml file is
Any ideas why I get the above error when building the solution in Visual Studio?