-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow users to override all storage options at the command line #7315
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: #7309 |
A test would be good. |
Concur that a test would be nice |
The problem is there is no good way to test with storage.conf that I can see, without overwriting the system configuration files. |
I was just looking at this PR and pondering that very question. I've long wanted a way to test config files, but really the only sane way to do that is with a For a case like this, where you don't need @test ..... {
fake_conf=$PODMAN_TMPDIR/home/.config/containers/containers.conf
mkdir -[ $(dirname $fake_conf)
cat >$fake_conf <<EOF
blah blah blah
EOF
HOME=$PODMAN_TMPDIR/home run_podman --storage-opt="" info ... Disclaimer: I typed code directly into a browser without testing. That is always a bad idea. |
Sadly this PR will only work for rootfull podman |
Need containers/common#262 in order to add tests. |
954dc58
to
195c66e
Compare
337ef74
to
8aa5243
Compare
8aa5243
to
ffbb6dc
Compare
A friendly reminder that this PR had no activity for 30 days. |
podman --root /var/lib/shared --storage-opt="" pull alpine Tells podman to ignore the storage options defined in storage.conf. This would allow users to configure additional stores, and still use podman to update the additional store storage. Signed-off-by: Daniel J Walsh <[email protected]>
A friendly reminder that this PR had no activity for 30 days. |
A friendly reminder that this PR had no activity for 30 days. |
@rhatdan, let's get things moving before we the PR has birthday :) |
@rhatdan: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have fixed this via other means. |
Another possible solution could be podman providing a command that modified the storage.conf file in a safe and consistent way, something like
|
That would be a very complex tool and would need to be modified each time a new config entry was added to containers.conf. If there was a simple way to autogenerate the tool, I might consider it. but this seems like you are building a toml editor. |
podman --root /var/lib/shared --storage-opt="" pull alpine
Tells podman to ignore the storage options defined in storage.conf.
This would allow users to configure additional stores, and still use
podman to update the additional store storage.
Signed-off-by: Daniel J Walsh [email protected]