标签: resolv

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

I have a VPN client in my Docker container (ubuntu:18.04).

The client must do the following:

mv /etc/resolv.conf /etc/resolv.conf.orig
Run Code Online (Sandbox Code Playgroud)

Then the client should create new /etc/resolv.conf with their DNS servers. However, the move fails with an error:

mv: cannot move '/etc/resolv.conf' to '/etc/resolv.conf.orig': Device or resource busy
Run Code Online (Sandbox Code Playgroud)

Can this be fixed? Thank you advance.

P.S.: I can 't change the VPN client code.

ubuntu docker resolv

3
推荐指数
2
解决办法
4056
查看次数

标签 统计

docker ×1

resolv ×1

ubuntu ×1