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

Vscode docker extension has trouble connecting to Podman #12810

Closed
benatshippabo opened this issue Jan 11, 2022 · 5 comments
Closed

Vscode docker extension has trouble connecting to Podman #12810

benatshippabo opened this issue Jan 11, 2022 · 5 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine macos MacOS (OSX) related

Comments

@benatshippabo
Copy link

Hi, so I ran the following commands:

# based on this blog post https://www.redhat.com/sysadmin/podman-mac-machine-architecture
brew install podman
pip3 install podman-compose
podman machine init
podman machine start

# adding the Podman ssh key to the ssh agent
# as instructed here: https://github.com/microsoft/vscode-docker/issues/3367#issuecomment-1005993552
ssh-add ~/.ssh/podman-machine-default

# to get the ssh path
podman system connection ls

And it seems to work fine when testing in the cli with podman and podman-compose, but when I try to integrate Podman with the vscode Docker extension and the Remote Containers extension, that is where I start encountering trouble.

For the record, I have the following configs set in attempt to get everything working:

{
  "docker.dockerPath": "podman",
  "docker.host": "ssh://core@localhost:50685",
  "docker.explorerRefreshInterval": 5000,
  "docker.dockerodeOptions": {
    "socketPath": "ssh://core@localhost:50685/run/user/1000/podman/podman.sock"
  }
}

And then I restarted the extension host. But the Docker extension just keeps getting ENOENT when trying to retrieve the containers, any idea why the extension is having trouble connecting? I have worked with the extension author and they helped me as much as they could, but we are stuck on why the extension is having trouble connecting to the socket.

Originally posted by @benatshippabo in #12745

@baude baude added machine macos MacOS (OSX) related labels Jan 13, 2022
@baude
Copy link
Member

baude commented Jan 13, 2022

can you provide more detailed instruction on how to set this up? I have not used this before. For example, I have no idea what to do with the config you provided.

@benatshippabo
Copy link
Author

benatshippabo commented Jan 13, 2022

can you provide more detailed instruction on how to set this up? I have not used this before. For example, I have no idea what to do with the config you provided.

Thanks for looking into this @baude, here are the steps to insert the settings:

  1. cmd shift p to access the command menu
  2. type "settings" into the search and then select the "Preferences: Open Settings (JSON)" option
    image
  3. once you have that json file open, you can just paste the specified settings into the file

@baude
Copy link
Member

baude commented Jan 13, 2022

then what?

@benatshippabo
Copy link
Author

then what?

And then install the docker extension, you can do this by

  1. clicking on the extensions icon
  2. searching docker for the extension
  3. once installed, please click on the docker extension and then you will get the ENOENT error message
    image

@benatshippabo
Copy link
Author

Closing this based on microsoft/vscode-docker#3367 (comment)

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine macos MacOS (OSX) related
Projects
None yet
Development

No branches or pull requests

2 participants