You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to rewrite cached paths in the database
This is accomplished by a new flag, `--rewrite-config`, which
instructs the database to replace cached paths. Before this, the
only real way to change paths like tmpdir, runroot, graphroot,
etc was to do a `podman system reset` then change the config
files before running another Podman command. Now, changing the
config files and running any Podman command with
`--rewrite-config` should be sufficient to pick up the new paths.
Please note that this can only be done with no containers, pods,
and volumes present. Otherwise, we risk the breakages that
caching paths was supposed to prevent in the first place.
This is SQLite only, given the deprecation and impending removal
of BoltDB.
Signed-off-by: Matt Heon <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/markdown/podman.1.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,14 @@ When true, access to the Podman service is remote. Defaults to false.
124
124
Settings can be modified in the containers.conf file. If the CONTAINER_HOST
125
125
environment variable is set, the **--remote** option defaults to true.
126
126
127
+
#### **--rewrite-config**
128
+
When true, cached configuration values in the database will be rewritten.
129
+
Normally, changes to certain configuration values - graphDriver, graphRoot, and runRoot in storage.conf, as well as static_dir, tmp_dir, and volume_path in containers.conf - will be ignored until a `podman system reset`, as old values cached in the database will be used.
130
+
This is done to ensure that configuration changes do not break existing pods, containers, and volumes present in the database.
131
+
This option rewrites the cached values in the database, replacing them with the current configuration.
132
+
This can only be done if no containers, pods, and volumes are present, to prevent the breakage described earlier.
133
+
If any containers, pods, or volumes are present, an error will be returned.
134
+
127
135
#### **--root**=*value*
128
136
129
137
Storage root dir in which data, including images, is stored (default: "/var/lib/containers/storage" for UID 0, "$HOME/.local/share/containers/storage" for other users).
0 commit comments