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 warning when running ocm-container first time after reboot #61

Closed
T0MASD opened this issue Aug 12, 2021 · 1 comment
Closed

podman warning when running ocm-container first time after reboot #61

T0MASD opened this issue Aug 12, 2021 · 1 comment

Comments

@T0MASD
Copy link
Contributor

T0MASD commented Aug 12, 2021

Hi, I'm noticing strange behaviour in ocm-container.

$ ocm-container
ERRO[0000] cannot find UID/GID for user <my openshift account>: No subgid ranges found for group "<my openshift account>" in /etc/subgid - check rootless mode in man pages. 
WARN[0000] using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids 
[~ {production} ]$ 

Exit and run again

$ ocm-container
[~ {production} ]$ 

I have tried adding to ocm-container/Dockerfile

RUN echo "<my openshift account>:100000:65536" >> /etc/subuid
RUN echo "<my openshift account>:100000:65536" >> /etc/subgid

I also added same to my host running the ocm-container.

Rebuilt, and verified /etc/subuid and /etc/subgid has above entries in the container and the house, however I'm still getting a warning upon running ocm-container for the first time

@T0MASD
Copy link
Contributor Author

T0MASD commented Aug 12, 2021

I was missing entry in /etc/subgid on my host

@T0MASD T0MASD closed this as completed Aug 12, 2021
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