github.com/jaylevin/jenkins-library@v1.230.4/pkg/docker/multiarch.go (about)

     1  package docker
     2  
     3  import (
     4  	"github.com/SAP/jenkins-library/pkg/piperutils"
     5  )
     6  
     7  // IsBinfmtMiscSupportedByHost checks if the hosts kernel does support binfmt_misc
     8  func IsBinfmtMiscSupportedByHost(utils piperutils.FileUtils) (bool, error) {
     9  	return utils.DirExists("/proc/sys/fs/binfmt_misc")
    10  }