diff --git a/virtcontainers/container.go b/virtcontainers/container.go index 6030d73550..9c8b271b62 100644 --- a/virtcontainers/container.go +++ b/virtcontainers/container.go @@ -515,10 +515,11 @@ func (c *Container) mountSharedDirMounts(hostSharedDir, guestSharedDir string) ( var sharedDirMounts []Mount var ignoredMounts []Mount for idx, m := range c.mounts { - if isSystemMount(m.Destination) { - if !(IsDockerVolume(m.Source) || Isk8sHostEmptyDir(m.Source)) { - continue - } + // Skip mounting certain system paths from the source on the host side + // into the container as it does not make sense to do so. + // Example sources could be /sys/fs/cgroup etc. + if isSystemMount(m.Source) { + continue } if m.Type != "bind" {