vscode-docker-compose icon indicating copy to clipboard operation
vscode-docker-compose copied to clipboard

Support of vscode in snap

Open by-cx opened this issue 6 years ago • 5 comments

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 avatar Dec 17 '18 21:12 by-cx

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

p1c2u avatar Dec 21 '18 15:12 p1c2u

@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 avatar Dec 22 '18 01:12 by-cx

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

danwt avatar Dec 12 '20 18:12 danwt

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

by-cx avatar Dec 12 '20 20:12 by-cx

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

redtux avatar Oct 16 '22 00:10 redtux