Anyone has idea how the new containers in Vscode actually work? It is the one that will replace dev containers and seems pretty nice.
Setting it up is different took some time to figure that you actually just choose docker or podman integration from extension and then you see toolbox containers and files, but don’t actually connect to those inside… I haven’t tested too much yet so not sure does it even connect to containers as before or do you just browse and open the files
The fine print suggests you can use podman for it by setting it with containers.containerClient. I would recommend using podman on Fedora for a better out of box experience.
If I’m interpreting right, this is meant to replace the old Docker extension, but not the DevContainers extension.
You would continue to use DevContainers if you want what it provides (i.e. building a container according to a devcontainer.json file and installing a VSCode server within it). I think you can have ContainerTools too - it’s not an XOR.
FWIW I use VSCode on Fedora with the DevContainers extension and rootless Podman. I never bothered with the old Docker extension so I’m not sure I’ll bother with the new one either!
Yeah I got podman integration done and it sees the toolboxes, but never got it fully connect at least not sane way as older dev container extension did. I see all files and folders on toolbox containers
got it working some things changed so the new container extenssion an connect to docker and podman, but it needs to have docker to actually get vcsode inside. So using dev containers need to do some editing
enable systemctl enable --user podman.socket --now
after that edit dev containers settings
One of my colleagues who regularly works with DevContainers and runs Fedora tested this out yesterday and he said there was an option somewhere to select podman in the GUI and it just worked for him from there. He didn’t need to do docker first, etc., but he recommended to disable the Docker extension if it was installed before, and then pick podman, and then it should work.
Yeah I had to enable my podman.socket and edit the Vscode settings little to get it work. The podman setting from containers works, but it is different you can browse files and edit etc not fully how dev containers work. At least on my settings tho I had saved all settings as flatpak Vscode use case so it might been issue too