We are using docker4drupal with our sites for local development. The problem is that the sites only work in Chrome. Another user had the same issue here.
Here is output of cat /etc/hosts
inside my container:
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.20.0.5 d012518e289d
cat /etc/hosts
on your container?172.20.0.5 d012518e289d
to172.20.0.5 *.docker.localhost
and run again172.20.0.5 d012518e289d
.localhost:PORT
in any browser?