Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

hub.repositories() returning empty #87

Open
amokkara opened this issue Oct 30, 2021 · 1 comment
Open

hub.repositories() returning empty #87

amokkara opened this issue Oct 30, 2021 · 1 comment

Comments

@amokkara
Copy link

url := "https://registry.hub.docker.com/"
username := "" // anonymous
password := "" // anonymous
hub, err := registry.New(url, username, password)

if err != nil {
	fmt.Println(err)
}

repositories, err := hub.Repositories()
fmt.Println(repositories)
tags, err := hub.Tags("ubuntu")
fmt.Println(tags)

why does this return nil repositories? shouldnt it return public repositories in dockerhub?

@qimingg
Copy link

qimingg commented Mar 10, 2023

You should use library/ubuntu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants