MCPcopy
hub / github.com/perkeep/perkeep / Remove

Method Remove

pkg/test/dockertest/docker.go:234–242  ·  view source on GitHub ↗

Remove runs "docker rm" on the container

()

Source from the content-addressed store, hash-verified

232
233// Remove runs "docker rm" on the container
234func (c ContainerID) Remove() error {
235 if Debug {
236 return nil
237 }
238 if string(c) == "" {
239 return nil
240 }
241 return exec.Command("docker", "rm", "-v", string(c)).Run()
242}
243
244// KillRemove calls Kill on the container, and then Remove if there was
245// no error. It logs any error to t.

Callers 1

KillRemoveMethod · 0.95

Calls 2

RunMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected