MCPcopy Index your code
hub / github.com/moby/moby / registerExecCommand

Method registerExecCommand

daemon/exec.go:27–32  ·  view source on GitHub ↗
(container *container.Container, config *container.ExecConfig)

Source from the content-addressed store, hash-verified

25)
26
27func (daemon *Daemon) registerExecCommand(container *container.Container, config *container.ExecConfig) {
28 // Storing execs in container in order to kill them gracefully whenever the container is stopped or removed.
29 container.ExecCommands.Add(config.ID, config)
30 // Storing execs in daemon for easy access via Engine API.
31 daemon.execCommands.Add(config.ID, config)
32}
33
34// ExecExists looks up the exec instance and returns a bool if it exists or not.
35// It will also return the error produced by `getConfig`

Callers 5

ContainerExecCreateMethod · 0.95
TestExecResizeNoSuchExecFunction · 0.95
TestExecResizeFunction · 0.95
TestExecResizeTimeoutFunction · 0.95
runMethod · 0.80

Calls 1

AddMethod · 0.65

Tested by 3

TestExecResizeNoSuchExecFunction · 0.76
TestExecResizeFunction · 0.76
TestExecResizeTimeoutFunction · 0.76