-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
rootless config files are not created #6777
Comments
We have fixed There are a few different conf files we read in order to get to the rootless configuration, but I think it still makes sense to show the rootless override file in We need to update the tutorial. @gatoniel since you recently went through it, would you like to open a PR changing the parts that you think are not valid anymore? |
Yes, I am happy to do that. But there are some infos I would like to put in there, that I do not know yet:
Especially the last point is important: In my case, I just want to add a additionalimagestore. But when I create a storage.conf in .config/containers with the following content
and then run
So I think the default config values for the graph driver (maybe other configs, too) differ, when there exists a .config/containers/storage.conf with singular config commands and when having no storage.conf at all. This seems wrong, unless it is easy to create the default config files. |
What did you storage.conf file look like. I think this is a bug, I was doing a demo yesterday, and had similar issues. I wanted to just add just ignore_chown_errors for a demo I was doing with some HPC People [storage] But this blew up and I ended up having to make my config look like [storage] |
Thanks for the pointer! It had just the above mentioned three lines. I forgot to add
This gives the following output of
So it seems to work. |
Could you point me to some ressource that clarifies on these questions. Otherwise I cant really change the tutorial. |
I am about to write a blog on containers.conf. Storage.conf Registries.conf There are a few others, but these are the important ones and the ones most likely for users to edit. |
I updated the configuration part of the tutorial on rootless podman. I added the order in which configuration files are read in and a hint, how users can create default configuration in the home directories. Closes containers#6777
I updated the configuration part of the tutorial on rootless podman. I added the order in which configuration files are read in and a hint, how users can create default configuration in the home directories. Closes containers#6777 Signed-off-by: Niklas Netter <[email protected]>
I updated the configuration part of the tutorial on rootless podman. I added the order in which configuration files are read in and a hint, how users can create default configuration in the home directories. Closes containers#6777 Signed-off-by: Niklas Netter <[email protected]> Signed-off-by: Daniel J Walsh <[email protected]>
so de we conclude from this conversation that rootless podman is setup by default without the need of any additional configurations? |
Correct rootless Podman theoretically should work with no config files at all. |
The tutorial How to run Podman on Windows with WSL2 relies on |
It should not be necessary if you use podman machine. |
@rhatdan are you suggesting the use of a VM inside Microsoft's WSL2 VM (nested virtualization)? |
Hoping for better news personally… |
podman machine configures WSL on Windows. It does not do nested Virtualization. |
Oh wow, @rhatdan that is way better than I ever expected. I didn't realize you could natively run This is really great functionality. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The config files ~/.config/containers/storage.conf and ~/.config/containers/libpod.conf do not exist. But podman info --debug refers to them. But the rootless tutorial indicates that they should exist. Is there some step, that I miss, to create these files? Or is the tutorial outdated? From this discussion I get, that
podman info
should create the config files?My$XDG_CONFIG_HOME is not set by default on my server. So $ {XDG_CONFIG_HOME}/containers becomes /containers, where normal users do not have any rights. But I tested with a new user, where I added
export XDG_CONFIG_HOME=/home/netter2/.config
to the .bashrc before the first login.podman info
did not create anything. I also tried to create the folder .config/containers beforehand, which did not work either.Is there maybe some global config, that forbids rootless to create their own config files?
Steps to reproduce the issue:
Create a new user and login with that user
run
podman info
check whether .config/containers/storage.conf exists or does not exist
Describe the results you received:
~/.config/containers/storage.conf and ~/.config/containers/libpod.conf do not exist
Describe the results you expected:
~/.config/containers/storage.conf and ~/.config/containers/libpod.conf should exist and be populated with a standard configuration.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
CentOS 8 on a physical workstation.
The text was updated successfully, but these errors were encountered: