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

podman_import can't refer to imported image #886

Open
rkotech opened this issue Jan 1, 2025 · 0 comments
Open

podman_import can't refer to imported image #886

rkotech opened this issue Jan 1, 2025 · 0 comments

Comments

@rkotech
Copy link

rkotech commented Jan 1, 2025

Hey,

Thanks for the awesome podman collection, it makes it so easy to work with containers from ansible.

I have an issue at hand though:

  • I pull an image from public hub that I want to use, but it runs services as root.
  • I want to change it to run stuff as a certain user, so this is what I try to do:
  1. pull hub-image
  2. run container using hub-image
  3. create user 'wildcat' in container
  4. export container as c.tar
  5. import c.tar as new-image
  6. run new-container as user wildcat

My problem is between step 5. and 6., since when I use podman_import, the imported image does not have a property I could refer to in step 6. When I list images, the imported image does not have a REPOSITORY or TAG, and the image ID is not returned by podman_import, so I can't use that either.

$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> f286a120753a About a minute ago 531 MB

Am I doing something wrong?

cheers,
Robert

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

1 participant