Replies: 2 comments 8 replies
-
use podman 5.0 where pasta support for the rootless-netns logic was added |
Beta Was this translation helpful? Give feedback.
6 replies
-
Now that 5.x is released, I'd like to know how to do the same thing, but in reverse: I have an existing custom network and I don't want my rootless containers to switch to pasta. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm not sure if I understand how
Network Backend
works, but I'm currently using:I've done:
sudo yum install -y podman passt
cp /usr/share/containers/containers.conf /etc/containers/containers.conf
/etc/containers/containers.conf
for the line#default_rootless_network_cmd = ""
to bedefault_rootless_network_cmd = "pasta"
insteadpodman system reset
After the reset, I checked
ps aux | grep pasta
, and I saw:Although I haven't started any containers (weird O_O).
Anyhow, then I've done:
which then I was able to see:
So I can see that I've started this container using the
pasta
network.However, I have a custom network that I created:
And I'd like to use this network for my flask application container, so something like:
podman run -d --name RED-container --network RED -P localhost/flask-app
but if I deploy the container like that (specifying
RED
as network), it'd spawn the container withslirp4netns
network still, because after deploying the container I can check:which wasn't visible before.
So my
busybox
did run withpasta
network backend, but my flask-app still ran withslirp4netns
even though I specifieddefault_rootless_network_cmd = "pasta"
Is there a way for me to do something like
podman run -d --name RED-container --network pasta RED -P localhost/flask-app
where I can both specifypasta
AND the custom network I created?Or am I misunderstanding the concept of network backend (it's not supposed to be used w/ a custom defined network..?)
Any explanations would be highly appreciated, thank you so much in advance!
Beta Was this translation helpful? Give feedback.
All reactions