-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unable to connect to Podman socket - A socket operation encountered a dead network. #25284
Comments
@l0rd could you respond to this ? |
I can't reproduce the problem so it's hard to tell. @nddipiazza here is my setup please see what are the differences, that would help me reproducing the problem:
podman pull quay.io/podman/hello and the scripts runs successfully.
There should be no need to specify it but you can add |
@l0rd I am running from Azure Devops on-prem trying to utilize Podman within the pipeline. I am connecting with remote desktop into the server with user This user runs the Azure devops agent is I'm guessing the problem is permissions as this does not own permission. It fails to find the podman machine in this situation. Am I just using this in an unapproved/unintended way and suffering the consequences? |
@nddipiazza, thank you for the details; I was able to reproduce the problem if I open a powershell terminal as a different user on my local windows. Setting I will continue investigating. |
@nddipiazza to address your issue you have 2 choices:
|
trying this but when I do it this way the network is unavailable on the podman machine. so my attempt is to take ADO pipeline and do this:
So something about running this as this "headless" user makes it so I cannot access the internet. I am able to do the podman machine init, machine start, podman pull when I am logged in via a remote desktop session to Windows, but not when running from the pipeline which would be from a background process not backed by a windows desktop session. |
I like this option so much I want to eliminate it as an absolute impossibility before abandoning it. Because this does not require me actually having a "keep-alive" windows session logged in as a user. It can run headless. |
I don't know why that's happening. In particular, it's surprising that the ADO service can successfully run Anyway, I will try to run a headless service and reproduce the problem, although it may not be easy on Windows 11. For your scenario, my recommendation would be to run Podman in a VM that is always up (and you may prefer Hyper-V rather than WSL for that reason) and connect to it from the ADO pipeline. Creating and deleting Podman machines as part of ADO pipelines makes your CI slower and more prone to errors. |
I would love to use that approach with Linux dedicated vm stuff - because it would make this so much easier. But I'm stuck on Windows VMs because they are already required for other testing purposes and I want to better utilize them by adding podman i will not start podman macine each time via pipeline, that will be started outside of the pipeline as a windows service along side the Azure devops build agent. the key is that it will be running as the same service account i am going to fire up a bare metal windows sever 2022 instance and see if i can simulate this same scenario |
You may want to try to create a Podman VM using Hyper-V rather than WSL, so it lasts even after the user who did the In the
|
OK i'll give that a shot today. |
ok i re-installed wsl installed it then chose hyper-v. will let you know if it works |
oops didn't mean to close this |
@l0rd can you re-open this? i have fat fingers and apparently the comment button wasn't green enough |
On Windows Server 2022.
Under the Service account user, I'm able to log in to the Windows Server as this user and set up podman like the following
Great I can see that it's running:
Then from another process I'm testing this out via an Azure devops pipeline that does this:
Here's the result:
Why is it unable to find the socket?
Is there some way to specify the IP address and Port via DOCKER_HOST? Or something?
The text was updated successfully, but these errors were encountered: