p1c2u / vscode-docker-compose

Docker Compose Extension for Visual Studio Code
MIT License
18 stars 8 forks source link

Support of vscode in snap #26

Open by-cx opened 5 years ago

by-cx commented 5 years ago

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)

p1c2u commented 5 years ago

@by-cx Hi. docker-compose is not part of extension. Make sure you have docker and docker-compose installed on your system.

by-cx commented 5 years ago

@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 :-(

danwt commented 3 years ago

@by-cx Did you have any luck finding a solution?

by-cx commented 3 years ago

@danwt Yes, I installed VSCode into my Fedora directly :-)

redtux commented 2 years ago

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).