Skip to content

Privileged and network mode

When you create an app or a new version of an app, you have the possibility to choose the privileged or the network mode.

Privileged mode

The privileged mode allows services of apps to access resources.

Some services in the *.yaml configuration file of the app request to run in privileged containers. Privileged containers have all capabilities (depending on the specific Linux kernel version) of the host which allows them to access resources which are not accessible in ordinary containers. For example, if a service requires direct hardware access or use the hosts kernel functions, you must enable the privileged mode.

Enabling the privileged mode

  1. In the Services of the Edge App, search Privileged in the search bar when you add a new app version or create a new app.

  2. Click Privileged in the search bar.

  3. Select the Privileged check box.

  4. Configure the different pages.
    Do not make any settings on the network page.

  5. Click Save.

When you successfully create the app version respectively the app, the line privileged: true is added in the *.yaml file.

Network mode

The network mode allows apps to run on the host network. To avoid port conflicts, select the network mode bridged.

NOTICE

Network mode host
When you enable the network mode host for an app, the container of the app shares the hosts networking namespace and the container does not get its own IP address(es). For example, if you run a container which binds to port 80 and you use the network mode, the containers app is available on port 80 on the hosts IP address.
Apps will not start in case of port conflicts.

Enabling the network mode

  1. In the Services of the Edge App, click the Network section when you add a new app version or create a new app.
    The Network screen is displayed.

  2. From the drop-down list, select Network Mode.