Do not use host network when launching Prometheus in Docker

What does this Merge Request do?

When launching Prometheus inside Docker container on macOS, we have seen connectivity issues. The reason seems to be that 1) Docker for Mac uses a VM to run docker containers inside that VM and 2) when --net host is used, it won't expose the port on the actual host OS. It works by removing the --net host option. Also, I believe it won't be an issue for Linux users with this change.

Merge Request checklist

  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.

Merge request reports

Loading