I’m practicing EX294 in a RHEL-based lab environment and I’m having trouble opening the Dev Container in VS Code.
Setup:
- RHEL-based workstation
- VS Code
- Podman (using the regular
desktopuser, not root) - VS Code Dev Containers extension
- Ansible extension
- The required Ansible development-tools image and supported execution-environment image can both be pulled successfully using Podman.
I followed the practice lab setup to clone the repository, configure the Ansible extension, enable linting and execution-environment support, configure VS Code Dev Containers to use Podman instead of Docker, and create the development container.
The interesting part is that Podman itself appears to be working. podman images shows the required images, and podman ps -a shows the container.
However, VS Code is not reopening the folder inside the Dev Container.
I also see an error in the Problems tab associated with the very first { in .devcontainer/podman/devcontainer.json:
"Unable to load schema from raw.githubusercontent.com … TypeError: getaddrinfo …"
The devcontainer.json itself doesn't appear to have a JSON syntax problem. The schema-related error seems to be related to VS Code trying to access raw.githubusercontent.com.
I have not switched to root or used sudo podman, since Podman works with my normal user.
Has anyone encountered this combination of:
- VS Code Dev Containers
- Podman instead of Docker
- RHEL
raw.githubusercontent.comschema /getaddrinfoerror- Dev Container not opening?
What would be the best way to determine whether this is a DNS/network issue, a VS Code Dev Containers configuration issue, or a Podman socket/configuration issue?
I’m intentionally not posting the lab repository URL, registry/image names, credentials, hostnames, exact configuration, or exercise instructions to avoid disclosing exam-related material.
Source: r/redhat · by /u/Srirampachiappan