Docker Community Forums

Share and learn in the Docker community.

"Device or resource busy" when i try move /etc/resolv.conf in ubuntu:18.04. How fix it?

Hi all! =)

I have vpn client in my docker container (ubuntu:18.04)

vpn client must do the following:

  1. mv /etc/resolv.conf /etc/resolv.conf.orig
  2. create new /etc/resolv.conf with theit dns servers

He can 't do that. Error:

mv: cannot move ‘/etc/resolv.conf’ to ‘/etc/resolv.conf.orig’: Device or resource busy

Can this be fixed? Thank you advance

P.S.

I can 't change the vpn client code