By default, RHEL/CentOS systems store log data only in memory or in a ring buffer in
the /run/log/journal directory. By performing this step, log data
persists and can be saved indefinitely, if you implement log file rotation practices. For
more information, refer to your operating system documentation.

mkdir -p /var/log/journal && systemctl restart systemd-journald

Enable and start the Dnsmasq package.

The package facilitates networking among Docker containers.

systemctl enable dnsmasq && systemctl start dnsmasq

If name resolution in your environment relies solely on entries in
/etc/hosts, configure dsnmasq so that containers
can use the file:

Open /etc/dnsmasq.conf with a text editor.

Locate the line that starts with #domain-needed,
and then make a copy of the line, immediately below the original.

Remove the number sign character (#) from the beginning of the line.

Locate the line that starts with #bogus-priv,
and then make a copy of the line, immediately below the original.

Remove the number sign character (#) from the beginning of the line.

Locate the line that starts with #local=/localnet/,
and then make a copy of the line, immediately below the original.

Remove net, and then remove the number sign
character (#) from the beginning of the line.

Locate the line that starts with #domain=example.com,
and then make a copy of the line, immediately below the original.

Replace example.com with local,
and then remove the number sign character (#)
from the beginning of the line.