mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-22 22:56:17 +00:00
Fixes bug when pulling an official image (no user namespace) with a specified tag
This commit is contained in:
@@ -211,6 +211,11 @@ func (graph *Graph) getRemoteTags(stdout io.Writer, registries []string, reposit
|
||||
|
||||
func (graph *Graph) getImageForTag(stdout io.Writer, tag, remote, registry string, token []string) (string, error) {
|
||||
client := graph.getHttpClient()
|
||||
|
||||
if !strings.Contains(remote, "/") {
|
||||
remote = "library/" + remote
|
||||
}
|
||||
|
||||
registryEndpoint := "https://" + registry + "/v1"
|
||||
repositoryTarget := registryEndpoint + "/repositories/" + remote + "/tags/" + tag
|
||||
|
||||
|
||||
Reference in New Issue
Block a user