"Rebuild and Reopen in Container" does not show up in DevContainers

maybe you can try to use the engine to do the same thing?
Possibly this series of commands

docker ps -a

in mine this gives

hbar1st@HanaaP:~/rdb-alpha$ docker ps -a
CONTAINER ID   IMAGE                                                                                COMMAND                  CREATED        STATUS                      PORTS     NAMES
b01107945adf   vsc-rdb-alpha-f35ac1bfe64a60459e48fc0f4575bcfbe580793aa32444ca6a27d449f2d49a82-uid   "/bin/sh -c 'echo Co…"   43 hours ago   Up 52 minutes                         trusting_franklin

then you can try to remove next?

docker rm ID_or_Name ID_or_Name

So i would use my container id in the rm command

Thank you again for your help, but it is still not working. I deleted the container. And then I started it new. I have now a new container ID, but everything else is still the same…

Try to follow the steps here after deleting the container again. Make sure to also uninstall coderoad and dev containers before trying these steps.

I deleted the container and rdb-alpha and installed them new.

The course does still not run. this is how it looks now:

But I was not able to run this command: Run code --user-data-dir ./vscode-profile --extensions-dir ./vscode-extensions .

Please have a look at my terminal:

unfortunately I’m out of ideas. I recommend responding back to the link I provided as the person that posted it is the project maintainer.

Okay, anyway, thank you very much for your time and help! :folded_hands:

i came up with something that may or may not work for you. If you want to try it is this:

After exiting vs code:
1- copied rdb-alpha to a new directory like rdb-alpha1 from the command line, (eg. cp -r rdb-alpha rdb-alpha1)
2- then cd to this new rdb-alpha1 dir and pruned all unused docker images: docker image prune -a . Make sure the rdb image is gone by running docker images. If still there, remove it with docker rmi <image-id>. If that doesn’t work because there is a container using it, then run docker ps -a to see any containers that relate to the rdb-alpha, then run docker rm <container-id> and try again to clear the image from before.
Finally run docker volume prune to clear unused volumes.
The goal is to make sure that docker images shows no images related to rdb-alpha
3- then run code . from the new renamed path
4- then went to the Command Palette and ran Dev Containers Rebuild and Reopen
5- then started coderoad
6- then clicked start and entered a new url etc
7- then when presented with the first step, i opened a new bash terminal

From there things continue to work.

Edit: if you want to save your work to a repo. (Note the instructions assume you have a github account and have setup ssh) Rm the .git file in the duplicate directory you made. Then run git init. After that run git add . to stage all your changes then git commit -m “my first commit” then go to GitHub and create a new repo and give it the same name as your new directory (rdb-alpha1) and after creating, you will be shown two sets of instructions. The first set is to be ignored. Instead follow the second set for people who have a local repo. The second set of instructions has three commands to run in sequence.

2 Likes

please note I modified the instructions since first posting and tested them and they seem to work well so far (i ran through a whole course and i got the checkmark in fCC too)

Thank you, it works.

1 Like

Thank you for the new instructions. I made everything new with rdb-alpha1 and deleted the old containers.

And it is now running!!! :folded_hands: Thank you so much!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.