You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys.
My goal is to use remote container extension. How to install podman inside sandbox or it is possible to reach out from sandbox to communicate with Podman binary
There is already #55 somewhat discussing this. But I'll also answer here. As far as I know, it's not possible to use Podman with the flatpaked VSCode by default. The main reason is that VSCode itself is not aware of being in a flatpak and there is no podman binary in its environment. But you can bypass it. Steps:
Create a file with a name of your choice (I called mine simply podman) and write into it:
#!/bin/shexec flatpak-spawn --host podman "$@"
Put the file somewhere, where it can be accessed from the flatpak (I put mine in the root of my home folder).
Open VSCode
Go to Settings of the Remote-Container extension
Set Docker Path to the absolute path to the podman wrapper you created
If the extension still complains about missing Docker, I recommend checking if the flatpak can really see the file.
Reacted by Giorgi Mkervalishvili, Ivo Damjanović, futureapricot, Cleo Menezes Jr., Ronny Reichmann and Unchun Yang
There is already #55 somewhat discussing this. But I'll also answer here. As far as I know, it's not possible to use Podman with the flatpaked VSCode by default. The main reason is that VSCode itself is not aware of being in a flatpak and there is no podman binary in its environment. But you can bypass it. Steps:
1. Create a file with a name of your choice (I called mine simply `podman`) and write into it:
#!/bin/shexec flatpak-spawn --host podman "$@"
1. Put the file somewhere, where it can be accessed from the flatpak (I put mine in the root of my home folder).
2. Open VSCode
3. Go to Settings of the Remote-Container extension
4. Set `Docker Path` to the absolute path to the podman wrapper you created
If the extension still complains about missing Docker, I recommend checking if the flatpak can really see the file.
Thank you very much. It worked but still, I have various errors. I decided to work without a flatpak. By the way, very interesting tips thank you for sharing
Activity
martymichal commentedon Nov 7, 2020
There is already #55 somewhat discussing this. But I'll also answer here. As far as I know, it's not possible to use Podman with the flatpaked VSCode by default. The main reason is that VSCode itself is not aware of being in a flatpak and there is no podman binary in its environment. But you can bypass it. Steps:
podman) and write into it:Docker Pathto the absolute path to the podman wrapper you createdIf the extension still complains about missing Docker, I recommend checking if the flatpak can really see the file.
giomke commentedon Nov 8, 2020
Thank you very much. It worked but still, I have various errors. I decided to work without a flatpak. By the way, very interesting tips thank you for sharing