Add NetworkManager-config-server to rocky-container

It prevents NetworkManager from automatically running DHCP on
unconfigured ethernet devices and allows connections with static IP
addresses to be brought up even on ethernet devices with no carrier.
This is default in Server or Server with GUI RHEL installations.

Change-Id: I15f4a28a257dc1b30f8957fd9ad41aef3c9de385
This commit is contained in:
Bartosz Bezak 2023-08-28 11:53:26 +02:00
parent b197d2c641
commit 14754b21a4
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
FROM docker.io/library/rockylinux:8 FROM docker.io/library/rockylinux:8
RUN dnf install -y findutils util-linux sudo python3 NetworkManager RUN dnf install -y findutils util-linux sudo python3 NetworkManager NetworkManager-config-server
RUN systemctl unmask console-getty.service dev-hugepages.mount \ RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ getty.target sys-fs-fuse-connections.mount systemd-logind.service \

View File

@ -1,6 +1,6 @@
FROM docker.io/rockylinux/rockylinux:9 FROM docker.io/rockylinux/rockylinux:9
RUN dnf install -y findutils util-linux sudo python3 NetworkManager RUN dnf install -y findutils util-linux sudo python3 NetworkManager NetworkManager-config-server
RUN systemctl unmask console-getty.service dev-hugepages.mount \ RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \ getty.target sys-fs-fuse-connections.mount systemd-logind.service \