Description of problem: If I create an environment with toolbox create toolbox enter the file /etc/resolv.conf ends up being a symbolic link to /run/host/etc/resolv.conf however /run/host/etc/resolv.conf is a symbolic link to /var/run/NetworkManager/resolv.conf which is not exported to the container. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. toolbox create 2. toolbox enter 3. ping www.google.com Actual results: the dns is not set Expected results: the dns is set Additional info:
Yes, this is a known problem (https://github.com/containers/toolbox/issues/187). Toolbox currently has no mechanism for following symlinks when it links files (there is an ongoing work to fix that: https://github.com/containers/toolbox/pull/460). But for now, there is a solution to fix this manually. /var/run/NetworkManager/resolv.conf is in fact available in the container. You should find it in /run/host/run/NetworkManager/resolv.conf. Steps to fix this manually: 1. rm /etc/resolv.conf (delete the faulty link) 2. ln -s /run/host/run/NetworkManager/resolv.conf /etc/resolv.conf
*** This bug has been marked as a duplicate of bug 1785244 ***