MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isDockerHubRegistry

Function isDockerHubRegistry

agent/utils/docker/docker.go:402–409  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

400}
401
402func isDockerHubRegistry(host string) bool {
403 switch normalizeRegistryHost(host) {
404 case "docker.io", "index.docker.io", "registry-1.docker.io":
405 return true
406 default:
407 return false
408 }
409}
410
411func extractRegistryHost(imageName string) (string, bool) {
412 parts := strings.Split(imageName, "/")

Callers 1

Calls 1

normalizeRegistryHostFunction · 0.85

Tested by

no test coverage detected