is “docker build --network=host” working as expected?
I tried building image with --network flag expecting that while running, docker container will pickup host network by default instead of bridge network. However, it did not happen. Upon docker inspect, I found out that container still has bridge network.
I want to avoid giving “–network=host” to docker run command.
docker build help says –
–network default Set the networking mode for the RUN instructions during build
Any pointers if I am missing anything?