So I tried to install VS Code in a toolbox instead of as layered.
Otherwise it works fully well, but then I would need to open a browser for authenticating into Github for Settings Sync. As the toolbox does not have a browser installed, this seems to go nowhere. I have tried to look if I could do this authentication with e.g. a device code, but no luck yet.
I could of course install a browser in the toolbox, but that seem inelegant.
after i found here a post that still works i found it so much easier to install VScode as flatpak and then make it to talk containers here is full guide that still works
I’m currently able to run VSCode with devcontainers on Fedora Silverblue. I use Flatpak VSCode, but installing it as a layered RPM is much easier. The following additional steps are needed for devcontainers to work with Podman:
In your devcontainer.json file, you must set properties remoteUser and containerUser properly. For example, if you use any base image from Microsoft itself, you must set both properties to vscode.
You must provide a file ~/.config/containers/containers.conf with the following contents:
[containers]
env = [
"BUILDAH_FORMAT=docker"
]
label = false
userns = "keep-id"
If you’re using Flatpak VSCode, the following additional steps are needed:
Create a wrapper script ~/.local/bin/podman-host with the following contents, and make it executable:
#!/bin/sh
exec flatpak-spawn --host podman "${@}"
Configure Docker Path in your Dev Container extension settings to /var/home/[username]/.local/bin/podman-host
Give your Flatpak write permission to /tmp folder:
flatpak override --filesystem=/tmp com.visualstudio.code