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

Networking for containers so they can ping each other in multihost scenario #2046

Closed
lukaszachy opened this issue May 2, 2023 · 0 comments · Fixed by #2419
Closed

Networking for containers so they can ping each other in multihost scenario #2046

lukaszachy opened this issue May 2, 2023 · 0 comments · Fixed by #2419

Comments

@lukaszachy
Copy link
Collaborator

Currently they are not able to do so. @kkaarreell pointed out his solution in https://github.com/RedHat-SP-Security/keylime-tests/blob/main/container/functional/keylime_verifier_registrar_container-basic-attestation/test.sh#L26 and https://github.com/RedHat-SP-Security/keylime-tests/blob/main/Library/test-helpers/lib.sh#L1910

Seems we can create a new network for the whole plan and assign it to the containers . 'multihost' plugin can inspect the IP and fill the /etc/hosts properly.

Short experiment:
podman network create --disable-dns FOO_NAME followed by podman run --net FOO_NAME.
The inspect should look into {{json .NetworkSettings.Networks.FOO_NAME.IPAddress}}

On my machine (fedora 37) I didn't need to specify subnet when creating network however without --disable-dns containers where not able to resolve url for fedora repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant