package reexec
import "github.com/docker/docker/pkg/reexec"
Package reexec facilitates the busybox style reexec of the docker binary that we require because of the forking limitations of using Go. Handlers can be registered with a name and the argv 0 of the exec of the binary will be used to find and execute custom init paths.
Index ¶
- func Command(args ...string) *exec.Cmd
- func Init() bool
- func Register(name string, initializer func())
- func Self() string
Functions ¶
func Command ¶
Command is unsupported on operating systems apart from Linux, Windows, and Darwin.
func Init ¶
func Init() bool
Init is called as the first part of the exec process and returns true if an initialization function was called.
func Register ¶
func Register(name string, initializer func())
Register adds an initialization func under the specified name
func Self ¶
func Self() string
Source Files ¶
command_unsupported.go reexec.go
- Version
- v24.0.1+incompatible
- Published
- May 19, 2023
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 minute ago –
Tools for package owners.