summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2021-10-25 15:00:22 +0000
committerAdrian Reber <areber@redhat.com>2021-10-26 14:42:32 +0000
commitbf8fd943ef61941b7ffe10cd389615256b381e2f (patch)
tree0bf8fbeb1e46b5dd448c6f5e20d74164a9ae1e35 /libpod/runtime_ctr.go
parentdbe770e3ce2ac2e34ffa8e28b80df57eb0182a68 (diff)
downloadpodman-bf8fd943ef61941b7ffe10cd389615256b381e2f.tar.gz
podman-bf8fd943ef61941b7ffe10cd389615256b381e2f.tar.bz2
podman-bf8fd943ef61941b7ffe10cd389615256b381e2f.zip
Allow 'container restore' with '--ipc host'
Trying to restore a container that was started with '--ipc host' fails with: Error: error creating container storage: ProcessLabel and Mountlabel must either not be specified or both specified We already fixed this exact same error message for containers started with '--privileged'. The previous fix was to check if the to be restored container is a privileged container (c.config.Privileged). Unfortunately this does not work for containers started with '--ipc host'. This commit changes the check for a privileged container to check if both the ProcessLabel and the MountLabel is actually set and only then re-uses those labels. Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'libpod/runtime_ctr.go')
0 files changed, 0 insertions, 0 deletions