MCPcopy
hub / github.com/moby/moby / StartWithBusybox

Method StartWithBusybox

internal/testutil/daemon/daemon.go:681–685  ·  view source on GitHub ↗

StartWithBusybox will first start the daemon with Daemon.Start() then save the busybox image from the main daemon and load it into this Daemon instance.

(ctx context.Context, t testing.TB, arg ...string)

Source from the content-addressed store, hash-verified

679// StartWithBusybox will first start the daemon with Daemon.Start()
680// then save the busybox image from the main daemon and load it into this Daemon instance.
681func (d *Daemon) StartWithBusybox(ctx context.Context, t testing.TB, arg ...string) {
682 t.Helper()
683 d.Start(t, arg...)
684 d.LoadBusybox(ctx, t)
685}
686
687// Kill will send a SIGKILL to the daemon
688func (d *Daemon) Kill() error {

Callers 15

TestFilterForwardPolicyFunction · 0.95
runTestNetFunction · 0.95
runTestNetFunction · 0.95
StartNodeWithBusyboxMethod · 0.95
TestAttachDisconnectLeakFunction · 0.80
TestDaemonRestartIpcModeFunction · 0.80
TestDaemonHostGatewayIPFunction · 0.80
TestCreateWithCDIDevicesFunction · 0.80
testRunWithCgroupNsFunction · 0.80

Calls 3

StartMethod · 0.95
LoadBusyboxMethod · 0.95
HelperMethod · 0.65

Tested by 15

TestFilterForwardPolicyFunction · 0.76
runTestNetFunction · 0.76
runTestNetFunction · 0.76
TestAttachDisconnectLeakFunction · 0.64
TestDaemonRestartIpcModeFunction · 0.64
TestDaemonHostGatewayIPFunction · 0.64
TestCreateWithCDIDevicesFunction · 0.64
testRunWithCgroupNsFunction · 0.64