I need help with using DevContainer.
# Problem
Right now I am trying to start training called "Red Hat Enterprise Linux Automation with Ansible". However, I am stuck on chapter 1 "Configuring an Ansible Development Environment in VS Code". I got to the point where I need to create container from DevContainer extension. I set downstream and pushed create button and it shows that the it has "Created new devcontainer at " blah blah(directory where I want it to create). However when I click on Open Devcontainer, it says that "devcontainer.json" does not exist. So when I go look for it through terminal, it has .devcontainer directory with two empty directory named "docker" and "podman" which is not what it supposed to look like according to the training text.
# What I did
I thought the problem is that devcontainer does not recognize my subscription (because I haven't really did anything on my computer). So I searched through the internet and found a following page. It says that I need to register on "registry.redhat.io". So I did and it showed that I am registered.
Then I tried to create the container again but it did not changed anything.
Second thing I tried was to use upstream instead of downstream. It also did not change anything and it only made a empty directory.
Third thing I tried was to make a json file on my own with following text.
this worked and was able to use reopen command.
So I tried changing the image to following.
my-registry.com/user/ansible-dev-tools-rhel8:latest
which was written in the training text. However it showed an error and did not work.
Please help me find a solution to this.
Thank you
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.