How to Specify $docker build --network="host" mode in docker-compose at the time of build
@dkanejs is right, and here is how you use it (the version number is important):
version: '3.4'services: my_image: build: context: . network: host
Looks as though the option was added in the latest version but is nowhere to be found in the docker-compose
online documentation.