diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-31 18:37:40 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-06-01 17:13:30 +0200 |
commit | 2805c7353b15679d66eec988949bb79e1e320805 (patch) | |
tree | c67f30e9a75fdd99db1ff4f3d67264f7d83f31c7 /libpod/common | |
parent | 398e7ceb86fec37c28720391914655387778b554 (diff) | |
download | podman-2805c7353b15679d66eec988949bb79e1e320805.tar.gz podman-2805c7353b15679d66eec988949bb79e1e320805.tar.bz2 podman-2805c7353b15679d66eec988949bb79e1e320805.zip |
pkg/specgen: parse default network mode on server
When podman-remote is used we should not resolve the default network
mode on the client. Defaults should be set on the server. In this case
this is important because we have different defaults for root/rootless.
So when the client is rootless and the server is root we must pick the
root default.
Note that this already worked when --network was set since we did not
parsed the flag in this case. To reproduce you need --network=default.
Also removed a unused function.
[NO NEW TESTS NEEDED] I tested it manually but I am not sure how I can
hook a test like this up in CI. The client would need to run as rootless
and the server as root or the other way around.
Fixes #14368
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/common')
0 files changed, 0 insertions, 0 deletions