T
T
TechNOIR2020-03-02 14:29:32
ubuntu
TechNOIR, 2020-03-02 14:29:32

Docker. How to allow container to backup resolv.conf and modify it?

Good afternoon.

I'm making a container with a vpn client inside.
The Vpn client makes a copy of /etc/resolv.conf to /etc/resolv.conf.orig on connection and makes changes to /etc/resolv.conf.
Is it possible to somehow allow these manipulations to the docker?
As for changing /etc/resolv.conf, as I understand it, you can decide -v /etc/resolv.conf:/etc/resolv.conf, but what about /etc/resolv.conf.orig? After all, the container must create it, it can create it at home, but on the host?

Thanks in advance for your help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question