MCPcopy Create free account
hub / github.com/ddev/ddev / PullBaseContainerImages

Function PullBaseContainerImages

pkg/ddevapp/ddevapp.go:2216–2231  ·  view source on GitHub ↗

PullBaseContainerImages pulls only the fundamentally needed images so they can be available early. We always need web image, and ddev-utilities for housekeeping.

(additionalImages []string, pullAlways bool)

Source from the content-addressed store, hash-verified

2214// PullBaseContainerImages pulls only the fundamentally needed images so they can be available early.
2215// We always need web image, and ddev-utilities for housekeeping.
2216func PullBaseContainerImages(additionalImages []string, pullAlways bool) error {
2217 base := []string{
2218 versionconstants.UtilitiesImage,
2219 }
2220 // Only pull the default web image when no project-specific images are provided,
2221 // otherwise the project's actual web image is already in additionalImages.
2222 if len(additionalImages) == 0 {
2223 base = append(base, ddevImages.GetWebImage())
2224 }
2225 if globalconfig.DdevGlobalConfig.XHProfMode == types.XHProfModeXHGui {
2226 base = append(base, ddevImages.GetXhguiImage())
2227 }
2228 base = append(base, FindNotOmittedImages(nil)...)
2229 base = append(base, additionalImages...)
2230 return dockerutil.PullImages(base, pullAlways)
2231}
2232
2233// FindAllImages returns an array of image tags for all containers in the compose file
2234func (app *DdevApp) FindAllImages() ([]string, error) {

Callers 2

StartMethod · 0.85

Calls 2

PullImagesFunction · 0.92
FindNotOmittedImagesFunction · 0.85

Tested by

no test coverage detected