mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Don't output inodes created to run a container
There is a group of inodes that get created when running a container if they do not exist. containerMounts = map[string]bool{ "/dev": true, "/etc/hostname": true, "/etc/hosts": true, "/etc/resolv.conf": true, "/proc": true, "/run": true, "/run/.containerenv": true, "/run/secrets": true, "/sys": true, } If the destination inode does not exist, libpod/runc will create the inode. This can cause programs like podman diff to see the image as having changed, when actually it has not. This patch ignores changes in these inodes. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1508 Approved by: giuseppe
This commit is contained in:

committed by
Atomic Bot

parent
6191ffb6c5
commit
fbd1392a46
@ -111,8 +111,8 @@ class TestContainers(PodmanTestCase):
|
||||
list(actual.keys())))
|
||||
|
||||
# TODO: brittle, depends on knowing history of ctnr
|
||||
self.assertGreaterEqual(len(actual['changed']), 2)
|
||||
self.assertGreaterEqual(len(actual['added']), 2)
|
||||
self.assertGreaterEqual(len(actual['changed']), 0)
|
||||
self.assertGreaterEqual(len(actual['added']), 0)
|
||||
self.assertEqual(len(actual['deleted']), 0)
|
||||
|
||||
def test_kill(self):
|
||||
|
Reference in New Issue
Block a user