According to official ocumentation, the following should work
version: '3.8'
services:
webapp:
image: mcr.microsoft.com/dotnet/framework/aspnet:4.8
network_mode: host
(tried both host
and "host"
)
But it complains with network host not found
:
docker-compose up -d
Starting 32f22992dc86_docker_webapp_1 ... error
ERROR: for 32f22992dc86_docker_webapp_1 Cannot start service webapp: network host not found
ERROR: for webapp Cannot start service webapp: network host not found
ERROR: Encountered errors while bringing up the project.
What am I missing?