MCPcopy Index your code
hub / github.com/coder/envbox / ExecInnerContainer

Function ExecInnerContainer

integration/integrationtest/docker.go:271–276  ·  view source on GitHub ↗

ExecInnerContainer runs a command in the inner container.

(t *testing.T, pool *dockertest.Pool, conf ExecConfig)

Source from the content-addressed store, hash-verified

269
270// ExecInnerContainer runs a command in the inner container.
271func ExecInnerContainer(t *testing.T, pool *dockertest.Pool, conf ExecConfig) ([]byte, error) {
272 t.Helper()
273
274 conf.Cmd = append([]string{"docker", "exec", "workspace_cvm"}, conf.Cmd...)
275 return ExecEnvbox(t, pool, conf)
276}
277
278// ExecEnvbox runs a command in the outer container.
279func ExecEnvbox(t *testing.T, pool *dockertest.Pool, conf ExecConfig) ([]byte, error) {

Callers 2

TestDockerFunction · 0.92
WaitForCVMDockerFunction · 0.85

Calls 1

ExecEnvboxFunction · 0.85

Tested by 1

TestDockerFunction · 0.74