This guide sets up VS Code Insiders with automatic updates and a persistent Ubuntu development container (similar to WSL) using Distrobox and Podman on Bazzite Linux (an ostree-based distro).
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" \
| sudo tee /etc/yum.repos.d/vscode.repo > /dev/nullsudo rpm-ostree install code-insiders
⚠️ Reboot required to apply changes.
systemctl rebootAfter rebooting:
ujust distrobox-assemble ubuntuYou can then start/enter the container with:
distrobox enter ubuntu- Open VS Code Insiders.
- Go to the Dev Containers extension (install if not done already)
- Go to Settings → Search for
dockerPath. - Set
Dev Containers: Docker Pathtopodman.
-
Start your container (if not already running):
distrobox enter ubuntu
You can immediately exit it again, this is just a way to start that podman container in the background.
-
In VS Code:
- Open the Command Palette (
Ctrl+Shift+P) - Select Dev Containers: Attach to Running Container
- Choose your container name from the list
- Open the Command Palette (
You're now ready to use VS Code inside your Ubuntu dev environment, just like WSL!