I have a vps, running docker, with nginx and hhvm. So far, so good: The images I use are the official nginx, and brunoric/hhvm

To have it play nicely with UFW, I had to disable the use of iptables by adding:

{ "iptables": false }

in /etc/docker/daemon.json

This seems to compromise port mapping somehow. Eq. if I try to start hhvm on any port other than 9000, I can't access it with nginx. If I try to start portainer on any alternative port, I can't access it. They both default to port 9000, so I cannot use them together.

How can I fix that?

  • What network driver are you using for each container? – Florin Asăvoaie Aug 13 '17 at 22:04
  • The default. Bridge. – Mauro Colella Aug 14 '17 at 6:35

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.