Project

General

Profile

Actions

Feature #11255

closed

[Crunchv2] Option to use host networking for containers

Added by Peter Amstutz about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
0.5

Description

Docker bridge networking has bugs on certain kernels. Add a flag to crunch-run to instruct containers to use host networking instead of the default bridge network.

Intend to support the following use case: the entire cluster is running compute nodes which will use host networking instead of bridge networking.

Sysadmin will specify the option via command line (which can be configured in crunch-dispatch-slurm).

We will provide two options:

  • Use host networking when networking is enabled, and "none" when it is disabled.
    When a container is created with --net=none, the container is given an "empty" network namespace (only the loopback device is available.) If kernel bugs are associated with Docker's bridge networking, this option would use host networking for those containers that need it, while maintaining isolation for containers that don't need networking.
  • Use host networking for all containers.
    If kernel bugs make network namespaces totally unusable, always use --net=host, so that network namespaces are not used at all. This should sidestep the issue, at the expense of reduced isolation from the host system.

Subtasks 1 (0 open1 closed)

Task #11312: Review 11255-docker-host-networkingResolvedPeter Amstutz03/21/2017Actions
Actions

Also available in: Atom PDF