diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-12-07 19:04:13 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-12-14 15:23:20 +0100 |
commit | 5490be67b3620c7a13319f4a18519ab691c20bef (patch) | |
tree | 071a9092015e247ba8fe230946e4aebb16f3abf2 /libpod/container_config.go | |
parent | 4a060caeabc7061b85a290ba31f87af7d4dbf508 (diff) | |
download | podman-5490be67b3620c7a13319f4a18519ab691c20bef.tar.gz podman-5490be67b3620c7a13319f4a18519ab691c20bef.tar.bz2 podman-5490be67b3620c7a13319f4a18519ab691c20bef.zip |
network db rewrite: migrate existing settings
The new network db structure stores everything in the networks bucket.
Previously some network settings were not written the the network bucket
and only stored in the container config.
Instead of the old format which used the container ID as value in the
networks buckets we now use the PerNetworkoptions struct there.
To migrate existing users we use the state.GetNetworks() function. If it
fails to read the new format it will automatically migrate the old
config format to the new one. This is allows a flawless migration path.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/container_config.go')
0 files changed, 0 insertions, 0 deletions