Prerequisite configuration for Podman users

If you use AppArmor in your Linux® environment, you must append some rules to the AppArmor profile and reload the profile.

Procedure

  1. If AppArmor is in use in your Linux environment, append the following rules to the AppArmor profile file for dnsmasq (/etc/apparmor.d/local/usr.sbin.dnsmasq) to permit proper function of dnsmasq:
    # required by the dnsname plugin in podman
    /run/containers/cni/dnsname/*/dnsmasq.conf r,
    /run/containers/cni/dnsname/*/addnhosts r,
    /run/containers/cni/dnsname/*/pidfile rw,
    
  2. Reload the dnsmasq AppArmor profile:
    sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.dnsmasq