When I run the
docker-compose.yml below it opens port 80 and 443 for the hosts IPv4 address, but it doesn’t open those ports for the hosts IPv6 address (I use nmap to scan this).
IPv6 is working fine on the host (I can use IPv6 to connect to other machines and I can connect to the host via SSH using its IPv6 address; it runs Ubuntu 20.04). I’ve run the same
docker-compose.yml on other servers where the IPv6 ports did open (Ubuntu 18.04). Might there be anything on this specific server that needs to be configured for Docker to open the ports on IPv6? Am I missing something else?
version: '2.0' services: nginx: image: nginx:1-alpine ports: - "80:80" - "443:443"
(I tried using
docker run instead of
docker-compose, but this results in the same problem.)
Docker Engine: 20.10.5