Unable to connect to the internet

I believe my interface is named enp2s0.
I am trying to change the interface name the pihole is using to this value. I am trying to follow this topic. But when trying to exec into the pihole container and entering pihole -r I receive Function not supported in docker images.

How can I reconfigure the pihole using docker? The web interface doesnt seem to offer it and the command is not supported when using the pihole docker image.