I am using Ubuntu ubuntu:focal-20220801 container. I need to add “search xyz.com” to my /etc/resolv.conf.
However, this change doesn’t persist if the docker container is killed and restarted. (dhclient probably overwrites it)
Is there anyway I can make it persistent ?
This is ubuntu 20.04.5 LTS. I can’t find netplan configuration files or /etc/netplan or /etc/network/interface configuration files.
Containers will not have their own netplan configuration. Containers are just isolated processes and the resolv.conf is generated for the containers and mounted into the container.