DEV Community

Antoni Borowski
Antoni Borowski

Posted on

Dev containers not working? Check if you’re using Flatpak VS Code

I spent ~30 minutes wondering why my dev containers weren’t seeing the Docker engine running.
Docker was working fine in the terminal, but VS Code couldn’t connect.

I was about to reinstall everything when I realized I had installed VS Code via Flatpak.

As we all know, Flatpak apps run in a sandbox, so vscode has no access to /var/run/docker.sock by default

Solution:
Install VS Code from your system package manager (e.g. .deb, .rpm, or the official tarball).

Takeaway:
Before debugging like crazy, double-check how your app is installed — sandboxed formats like Flatpak can break common development workflows.

Top comments (1)

Collapse
 
mkunikow profile image
Michal Kunikowski

If you are using VS from flatpack there is more secure to use extensions as there are sandboxes.
So maybe some people prefer to use Flatpak version.