Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman use #189

Closed
giomke opened this issue Nov 5, 2020 · 2 comments
Closed

Podman use #189

giomke opened this issue Nov 5, 2020 · 2 comments

Comments

@giomke
Copy link

giomke commented Nov 5, 2020

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

@HarryMichal
Copy link

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/sh

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

@giomke
Copy link
Author

giomke commented Nov 8, 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:

1. Create a file with a name of your choice (I called mine simply `podman`) and write into it:
#!/bin/sh

exec 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants