vscode-docker-compose
vscode-docker-compose copied to clipboard
Support of vscode in snap
I use vscode from Ubuntu's snap and when I install your extension I get:
Docker Compose Error: Command failed: docker-compose -f docker-compose.yml ps
/bin/sh: 1: docker-compose: not found
It searches docker-compose in the snap probably. I am not sure how to fix this, maybe use the integrated terminal? That one works fine.
My system: Elementary OS5 Juno (Ubuntu 18.04)
@by-cx Hi. docker-compose is not part of extension. Make sure you have docker and docker-compose installed on your system.
@p1c2u I can use docker and docker-compose in my system without any issue. The problem is my vscode is installed as snap and that limits access to the system outside of its sandbox. Other extensions were able to fix it somehow but I am not expert on snaps to tell you how :-(
@by-cx Did you have any luck finding a solution?
@danwt Yes, I installed VSCode into my Fedora directly :-)
Hi, this issue also exists when using a flatpak release of VSCode. I am writing this here (instead of opening a new issue), as it seems to be exactly the same issue. PATH is correctly set and VSCode can find other binaries as well. Both, docker and and docker-compose are installed system-wide (although it should make no difference as long as the binaries can be found - also an alias to e.g. podman should work). If you have any idea how to investigate this further I'd be glad to help out with debugging (both with snap and flatpak).