2

I'm using the latest version of Docker for Windows, on Windows 10 Enterprise 64-bit. When I run the following docker-compose.yml, Docker listens on my public IP, 127.0.0.1, and my router assigned address.

Since I'm only using Docker for Windows for local development, I'd prefer it not listen on my public IP at all, ideally through a setting in Docker or Hyper-v itself, rather than through my firewall or router.

Is there a way to keep Docker itself (Not per-container) listening only on 127.0.0.1, or at least not on any public addresses?

docker-compose.yml

version: '3.0'
services:
  web:
     image: tutum/apache-php
     build:
        context: .
        dockerfile: Dockerfile-php
     environment:
       - ALLOW_OVERRIDE=true
     ports:
       - "80:80"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.