MCPcopy Index your code
hub / github.com/docker/cli / remove

Method remove

cli/command/container/stats_helpers.go:35–41  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

33}
34
35func (s *stats) remove(id string) {
36 s.mu.Lock()
37 if i, exists := s.isKnownContainer(id); exists {
38 s.cs = append(s.cs[:i], s.cs[i+1:]...)
39 }
40 s.mu.Unlock()
41}
42
43func (s *stats) isKnownContainer(cid string) (int, bool) {
44 for i, c := range s.cs {

Callers 1

RunStatsFunction · 0.95

Calls 1

isKnownContainerMethod · 0.95

Tested by

no test coverage detected