nm-in-container: run with "--no-hosts" to have a plain /etc/hosts in the container

The bind mount interferes with running certain CI tests that want to
change /etc/hosts.
This commit is contained in:
Thomas Haller 2023-05-15 11:00:18 +02:00
parent 53ba9f4701
commit 33f7ee0bb7
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -579,6 +579,7 @@ do_run() {
podman run --privileged \
--name "$CONTAINER_NAME_NAME" \
--dns=none \
--no-hosts \
-d \
-v "$BASEDIR_NM:$BASEDIR_NM" \
"${BIND_NM_CI[@]}" \