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

Error when running "linux" containers over Podman #1483

Closed
q2dg opened this issue Jul 26, 2023 · 5 comments
Closed

Error when running "linux" containers over Podman #1483

q2dg opened this issue Jul 26, 2023 · 5 comments

Comments

@q2dg
Copy link

q2dg commented Jul 26, 2023

I've commented this issue in #643 (comment) , but I reference it here for visibility.

@hellt
Copy link
Member

hellt commented Jul 26, 2023

Hi
Podman is still in the experimental phase. We are not (actively) supporting it and rely on the community to steer it forward if needed.

@hellt hellt closed this as completed Jul 26, 2023
@steiler
Copy link
Collaborator

steiler commented Jul 26, 2023

@q2dg you might want to take a look at the container I assume it stopped or crashed.
Take a look at the logs of the container.

@q2dg
Copy link
Author

q2dg commented Jul 27, 2023

Well, they are empty...I suspect because they not even get to be started. I attach a screenshot

Captura de pantalla de 2023-07-27 13-46-55

Thanks!!

@steiler
Copy link
Collaborator

steiler commented Jul 27, 2023

you should enable -d (debugging log) and you see the state of stopped and exited. That explains why the network namespace link is no longer existing.
You would also need to share the topology file.

But I see you're using alpine containers, whcih do not have an entrypoint (or it is no long running process, unsure atm).
But you would need to provide a command that would run as the container process, which would remain running. A stupid easy option is the following:

name: alpinetest
topology:
  nodes:
    node1:
      kind: linux
      image: alpine:latest
      cmd: sleep infinity
    node2:
      kind: linux
      image: alpine:latest
      cmd: sleep infinity
  links:
    - endpoints: ["node1:eth1","node2:eth1"]

@q2dg
Copy link
Author

q2dg commented Jul 27, 2023

Oooh..it was that!!! The missing entrypoint!! Now it works perfectly with (root-ful) Podman!
Thanks a lot!!! (and sorry for the inconvenience!)

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

No branches or pull requests

3 participants