0

I want to let a container(php/hhvm) to use host's SMTP server (postfix)

How do I do it?

Shimon Doodkin
  • 4,310
  • 34
  • 37
  • port 25 already bing to some service in host( not docker container)? – Shen Yudong Jan 14 '18 at 11:29
  • @yudongshen I updated question – Shimon Doodkin Jan 14 '18 at 11:51
  • 1
    Possible duplicate of [From inside of a Docker container, how do I connect to the localhost of the machine?](https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach) – Kevin Kopf Jan 14 '18 at 12:20
  • it is what i was looking for but there is no secure solution, seems like opening network with host makes all hosts ports open to docker which is bad - how to solve it?, (not sure about following: )also bridge network makes docker's ports open to the world. there is no good solution. – Shimon Doodkin Jan 15 '18 at 01:58

0 Answers0