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

Function containerNames

cli/command/system/completion.go:179–185  ·  view source on GitHub ↗

containerNames contacts the API to get names and optionally IDs of containers. In case of an error, an empty list is returned.

(dockerCLI completion.APIClientProvider, cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

177// containerNames contacts the API to get names and optionally IDs of containers.
178// In case of an error, an empty list is returned.
179func containerNames(dockerCLI completion.APIClientProvider, cmd *cobra.Command, args []string, toComplete string) []string {
180 names, _ := completion.ContainerNames(dockerCLI, true)(cmd, args, toComplete)
181 if names == nil {
182 return []string{}
183 }
184 return names
185}
186
187// daemonNames contacts the API to get name and ID of the current docker daemon.
188// In case of an error, an empty list is returned.

Callers 2

completeEventFiltersFunction · 0.70
completeObjectNamesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…