package reexec
import "github.com/dotcloud/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 returns *exec.Cmd which has Path as current binary. For example if current binary is "docker.exe" at "C:\", then cmd.Path will be set to "C:\docker.exe".
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
Self returns the path to the current process's binary. Uses os.Args[0].
Source Files ¶
- Version
- v26.0.1+incompatible
- Published
- Apr 10, 2024
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 56 seconds ago –
Tools for package owners.