Docker proxy settings not applied during Docker build in WSL
I’m using Docker on Windows via WSL (Windows Subsystem for Linux). When I was using Docker Desktop directly, setting up the proxy worked fine for both docker run and docker build commands. However, when using Docker through WSL with an Ubuntu environment, the proxy settings don’t seem to be applied during the docker build process.
Docker on Windows use host localhost on container
I have a bunch of spring boot microservices that I want to dockerize and run locally on windows. Many of them have communication on each other on localhost for the localdev profile and also a connection to a postgres through localhost. I wanna switch the container’s localhost to host localhost similar to --network="host"
on linux. I tried a beta feature from windows docker with network_mode=host but it does not seem to work properly. Is it something like that feasible on windows ? On linux using --network="host"
everything works sharp.