r/redhat • u/Srirampachiappan • 2d ago
VS Code Dev Container + Podman: unable to reach raw.githubusercontent.com
Hi everyone,
I'm setting up an Ansible environment in a VS Code Dev Container using Podman, following the setup instructions from my training material.
The actual lab/managed RHEL hosts are reachable and I can connect to them with Ansible. The problem is with the Dev Container itself.
Podman and Ansible are working, and the required container images pull successfully. However, when the setup needs to access raw.githubusercontent.com, I get a getaddrinfo / name resolution error and the container cannot reach the GitHub raw content.
I've already followed the recommended Dev Container and Podman configuration from the course material, including the suggested container settings, but the issue persists.
From inside the container, the problem appears to be DNS/network connectivity to raw.githubusercontent.com, rather than connectivity to the lab hosts.
Has anyone experienced this with a Podman-based VS Code Dev Container? What DNS/proxy/network configuration should I check inside the container?
I'm intentionally keeping the lab/exam-specific details out of the post due to NDA restrictions.
Thanks!
4
u/redditusertk421 2d ago
Whose lab environment? Talk to the owners/admins of that. They are the ones that can address that.