MCPcopy Create free account
hub / github.com/containerd/nerdctl / GetBuildkitHost

Function GetBuildkitHost

cmd/nerdctl/builder/builder_build.go:258–272  ·  view source on GitHub ↗
(cmd *cobra.Command, namespace string)

Source from the content-addressed store, hash-verified

256}
257
258func GetBuildkitHost(cmd *cobra.Command, namespace string) (string, error) {
259 if cmd.Flags().Changed("buildkit-host") {
260 // If address is explicitly specified, use it.
261 buildkitHost, err := cmd.Flags().GetString("buildkit-host")
262 if err != nil {
263 return "", err
264 }
265 if err := buildkitutil.PingBKDaemon(buildkitHost); err != nil {
266 return "", err
267 }
268 return buildkitHost, nil
269 }
270
271 return buildkitutil.GetBuildkitHost(namespace)
272}
273
274func buildAction(cmd *cobra.Command, args []string) error {
275 options, err := processBuildCommandFlag(cmd, args)

Callers 3

pruneOptionsFunction · 0.92
processBuildCommandFlagFunction · 0.70
pruneOptionsFunction · 0.70

Calls 2

PingBKDaemonFunction · 0.92
GetBuildkitHostFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…