It works here, maybe I installed it… Let’s change the path to something familiar:
[root@ns8n3 ~]# runagent -m samba2 podman exec -ti samba-dc bash -l
root@dc2:/# apt-get update
root@dc2:/# apt install vim
...
root@dc2:/# vi /etc/samba/include.conf
…you can install Nano if you prefer.
Since it operates as a container, restarting the service undoes all previous changes, except for ‘include.conf,’ which is preserved in a persistent volume.