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
Call host podman inside a container but encounter Connection refused
error
#4234
Comments
Anyone can help me on this, about I could I call host podman like what we did with docker |
Then I enabled podman socket
then mount the new socket
but till error
|
Then I check the service status of podman socket, it show falid status
my OS is coreOS , a cluster host in Openshift 4.1 |
are you running the container as root user? Could you try to specify |
@giuseppe I found that seems a issue of podman socket when I restart io.podman.socket service
then it's show working and running
Then I call socket by python inside the container
then socket service failed with
and I tried this on an ubuntu host, that I manuall installed podman, all is good the podman version in coreOS openshift4.1 host is
the podman I manually install on ubnutu is
Is this a podman bug ? |
The issue is the support for podman varlink in podman 1.0.2-dev. You need a newer version of podman to make this work. |
thanks @rhatdan got it |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Still need to work on this. We definitely need to figure out how we can get this to work. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
A friendly reminder that this issue had no activity for 30 days. |
@rhatdan, still valid? |
Yup, needs containers.conf... |
Still working on this. |
I am trying to figure out a way in which a podman container can inspect images and containers on the host. I tried the following options
Is there any available workaround ? |
one idea ...
|
This should work?
|
@rhatdan works However "podman ps" on the host returns |
Yikes. What OS are you running on? |
I am using RHEL 8 , amazon ec2 instance.
|
But if the containerized podman creates a container, then the hosts podman ps blows up, because it does not have crun locally installed? |
I had to install crun on the host for the error to go away. |
I want to call host podman inside a container by podman python client
So I do
run a contianer and mount podman socket
podman run -it --privileged --entrypoint=bash -v /lib/systemd/system/io.podman.socket:/lib/systemd/system/io.podman.socket docker.io/python:3.6
then I login to the container, install python package
python3 -m pip install podman
call podman with the socket
unix:/lib/systemd/system/io.podman.socket
like what I did with docker but error showsThe text was updated successfully, but these errors were encountered: