-
Notifications
You must be signed in to change notification settings - Fork 522
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
On a Mac, the extension keeps timing out when using Podman instead of Docker #3367
Comments
@benatshippabo do you have an SSH agent set up? Our explorer uses the More info about setting up an SSH agent here: https://code.visualstudio.com/docs/containers/ssh |
@bwateratmsft Thanks for the swift reply, I think we are getting somewhere. After adding the ssh private key using: ssh-add ~/.ssh/podman-machine-default |
That looks promising! Is a value present in VSCode for environment variable |
@bwateratmsft yep, it is set to:
edit: I just tried setting the {
"docker.dockerodeOptions": {
"socketPath": "ssh://core@localhost:50685/run/user/1000/podman/podman.sock"
}
} And now it looks like it is connecting now 🎉 But there is an error, I don't think Podman supports the context command: ❯ podman context ls --format="{{json .}}"
Error: unknown flag: --format
❯ podman context ls
Error: unrecognized command `podman context`
Try 'podman --help' for more information.
❯ podman context
Error: unrecognized command `podman context`
Try 'podman --help' for more information. |
Can you try that value of |
It leads to the same socket hang up error, maybe it's how the socket path is concatenated? |
Hmm...I wonder if the SSH is actually necessary. Does |
That would be a negative. My understanding is that on a Mac, Podman creates a linux vm to run the containers on and their cli currently interacts through ssh only. Although it seems like they are working on it. Btw, I added a comment here so we can figure out how to resolve the |
I had another thought, what happens if you set all of the following settings? "docker.dockerPath": "podman",
"docker.host": "ssh://core@localhost:50261"
"docker.dockerodeOptions": {
"socketPath": "ssh://core@localhost:50685/run/user/1000/podman/podman.sock"
} I don't know for sure without trying it, but I think it might cause the logic that is running |
Is that port of |
Yup they are still accurate: {
"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"
}
}
|
Hm. I am stumped. Setting It may also require a different SSH key with |
Yeah, same error even when trying to connect as root user. 😞 |
@benatshippabo to make sure I set up a realistic repro, does your Mac have an Intel processor or the newer M1 (aka Apple Silicon)? |
It is on the M1 processor. Thanks @bwateratmsft |
@philliphoff do you mind trying out the scenario on your M1? I'll try it out on my Intel Macbook and see how it goes. |
I was able to get the same results on my Intel Mac. I've spent some time today looking into this. It seems things are going sideways in
@benatshippabo bad news and good news. The bad news is that I don't think there's currently any way to make this work. The good news is that #3263 ought to solve this and we're hoping to get it in our next release. For now, I'll resolve this one as a dupe of that. |
Yeah that makes sense to me. Thanks for keeping me posted @bwateratmsft |
Steps to reproduce
Then set the vscode config to use Podman:
Afterwards, go to the Docker extension and see the following:
Expected outcome
After configuring the Docker extension, the user should see the list of created containers.
Context
cross posted here as well containers/podman#12745 (comment)
The text was updated successfully, but these errors were encountered: