Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/containerd/nerdctl
/ IsDocker
Function
IsDocker
pkg/testutil/testutil.go:572–574 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
570
}
571
572
func
IsDocker() bool {
573
return
strings.HasPrefix(filepath.Base(GetTarget()),
"docker"
)
574
}
575
576
func
DockerIncompatible(t testing.TB) {
577
if
IsDocker() {
Callers
6
systemctlTarget
Method · 0.70
InfoNative
Method · 0.70
ContainerdAddress
Method · 0.70
DockerIncompatible
Function · 0.70
RequiresBuild
Function · 0.70
newBase
Function · 0.70
Calls
1
GetTarget
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…