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

Add tcp-ns option for pasta network driver #438

Open
aparcar opened this issue Sep 27, 2024 · 2 comments
Open

Add tcp-ns option for pasta network driver #438

aparcar opened this issue Sep 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@aparcar
Copy link
Contributor

aparcar commented Sep 27, 2024

Hi, I tried all combinations I could think of but could not figure out how to create a TCP namespace forwarding of a host port to the container. Specifically I want to add 3128 from the host to the container and with the following lines in containers.conf I got it working just fine:

[network]
pasta_options = ["-T", "3128:3128"]

However, I don't want to add this to all containers, so I tried things with podman-py to no success! The closest suggestion is available at #248 (comment) however my attempts resulting in some permission errors which I did not debug further (since using containers.conf just worked).

instance = podman_client.containers.create(
    ...
    networks={"pasta": {}},
    network_options={"pasta": ["tcp-ns=3128:3128"]},
    ...
)

More Ideas were things like network_options={"pasta": ["T=3128:3128"]} or even network_options={"pasta": ["T", "3128:3128"]}.

What is the right way?

@inknos inknos added the enhancement New feature or request label Oct 29, 2024
@sbrivio-rh
Copy link

As far as I understand #439 shows how to solve this now, correct...?

@inknos
Copy link
Contributor

inknos commented Nov 12, 2024

As far as I understand #439 shows how to solve this now, correct...?

There are a few comments that need to be addressed first, I pinged the reporter again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants