You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-07-03 00:57:26 +02:00
11 lines
291 B
Go
11 lines
291 B
Go
![]() |
package docker
|
||
|
|
||
|
import (
|
||
|
"github.com/SAP/jenkins-library/pkg/piperutils"
|
||
|
)
|
||
|
|
||
|
// IsBinfmtMiscSupportedByHost checks if the hosts kernel does support binfmt_misc
|
||
|
func IsBinfmtMiscSupportedByHost(utils piperutils.FileUtils) (bool, error) {
|
||
|
return utils.DirExists("/proc/sys/fs/binfmt_misc")
|
||
|
}
|