Network unaccessible in Dockerfile when run with Compose – Debian
In my project, apt-get fails to work from Dockerfile when I launch it with docker-compose. But when I call docker directly with --network option, it does work. Here are configs: docker-compose.yml: version: '3' services: main: build: main network_mode: host main/Dockefile:…