github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/init.go (about) 1 package main 2 3 import ( 4 "os" 5 6 "github.com/opencontainers/runc/libcontainer" 7 _ "github.com/opencontainers/runc/libcontainer/nsenter" 8 ) 9 10 func init() { 11 if len(os.Args) > 1 && os.Args[1] == "init" { 12 // This is the golang entry point for runc init, executed 13 // before main() but after libcontainer/nsenter's nsexec(). 14 libcontainer.Init() 15 } 16 }