MCPcopy Create free account
hub / github.com/docker/cli / NewService

Function NewService

internal/registry/service.go:24–30  ·  view source on GitHub ↗

NewService returns a new instance of [Service] ready to be installed into an engine.

(options ServiceOptions)

Source from the content-addressed store, hash-verified

22// NewService returns a new instance of [Service] ready to be installed into
23// an engine.
24func NewService(options ServiceOptions) (*Service, error) {
25 config, err := newServiceConfig(options.InsecureRegistries)
26 if err != nil {
27 return nil, err
28 }
29 return &Service{config: config}, nil
30}
31
32// Auth contacts the public registry with the provided credentials,
33// and returns OK if authentication was successful.

Callers

nothing calls this directly

Calls 1

newServiceConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…