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

Sharing images between rootless and root #5608

Closed
sandorex opened this issue Mar 25, 2020 · 5 comments
Closed

Sharing images between rootless and root #5608

sandorex opened this issue Mar 25, 2020 · 5 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue

Comments

@sandorex
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

Description

Sharing between root and rootless podman requires running

$ podman save image image.tar
$ sudo podman import image.tar image

Could a feature be added so that they share images or allow pull between rootless and root like

# cause this is ran rootless it will pull from root
$ podman pull podman:image

If pull/push approach has security issues then only root should be able to pull/push images

@openshift-ci-robot openshift-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 25, 2020
@rhatdan
Copy link
Member

rhatdan commented Mar 25, 2020

Most likely not, we have talked about this in the past But there are issues with a rootless user sharing content with root. Mainly because the rootless user has the images stored with UIDs based on it's user namespace. The root user has this based on root. If a rootless user attempted to look at a root image, all of the undefined UIDs in the image would look like -1, to the container.

The is a potential to figure out a way to push and pull images from one store to another, via the docker-daemon protocol, now that we are developing it, but we would need a way to bridge the two together, perhaps through sudo.

Nothing is in the works at this point.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Apr 25, 2020

Status is unchanged.

@rhatdan
Copy link
Member

rhatdan commented Jun 9, 2020

I have been writing a blog on this, which should be published soon.

@rhatdan
Copy link
Member

rhatdan commented Sep 10, 2020

Blog published
https://www.redhat.com/sysadmin/image-stores-podman

@rhatdan rhatdan closed this as completed Sep 10, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue
Projects
None yet
Development

No branches or pull requests

3 participants