-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing resolv.conf in WSL2 #8089
Comments
Can you check if |
Interestingly, when installed via appx-file, WSL-Ubuntu has another link
But I need to use the Ubuntu installed via rootfs with Podman. |
Probably related: #7616 |
What the content in I guess it is only the This is to some degree a configuration problem with your ubuntu image since systemd cannot be run in wsl AFAIK and therefore However, we use default entries if |
If the resolv.conf file is empty we provide default dns servers. If the file does not exists we error and don't create the container. We should also provide the default entries in this case. This is also what docker does. Fixes containers#8089 Signed-off-by: Paul Holzinger <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When installing Ubuntu 20.04 rootfs for WSL
and Podman 2.1.1 no container starts because of missing
/run/systemd/resolve/resolv.conf
.Steps to reproduce the issue:
Install Ubuntu 20.04 via tar in WSL2
Install Podman
Run a container as root:
podman run hello-world
Describe the results you received:
Describe the results you expected:
Container starts without errors.
Additional information you deem important (e.g. issue happens only occasionally):
It works if I run
cp /etc/resolv.conf /run/systemd/resolve/resolv.conf
beforehand. But I need to repeat this every time I restart WSL.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
WSL2
The text was updated successfully, but these errors were encountered: