2014-06-01 16:48:04 -04:00
|
|
|
page_title: Repositories and Images on Docker Hub
|
|
|
|
page_description: Repositories and Images on Docker Hub
|
|
|
|
page_keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, docs, documentation
|
2014-04-17 16:13:59 -04:00
|
|
|
|
2014-06-01 16:48:04 -04:00
|
|
|
# Repositories and Images on Docker Hub
|
2014-04-17 16:13:59 -04:00
|
|
|
|
|
|
|
## Searching for repositories and images
|
|
|
|
|
|
|
|
You can `search` for all the publicly available repositories and images using
|
|
|
|
Docker. If a repository is not public (i.e., private), it won't be listed on
|
2014-04-26 08:00:01 -04:00
|
|
|
the repository search results. To see repository statuses, you can look at your
|
2014-06-01 16:48:04 -04:00
|
|
|
[profile page](https://hub.docker.com) on [Docker Hub](https://hub.docker.com).
|
2014-04-17 16:13:59 -04:00
|
|
|
|
|
|
|
## Repositories
|
|
|
|
|
|
|
|
### Stars
|
|
|
|
|
|
|
|
Stars are a way to show that you like a repository. They are also an easy way
|
|
|
|
of bookmark your favorites.
|
|
|
|
|
|
|
|
### Comments
|
|
|
|
|
|
|
|
You can interact with other members of the Docker community and maintainers by
|
|
|
|
leaving comments on repositories. If you find any comments that are not
|
2014-04-26 08:00:01 -04:00
|
|
|
appropriate, you can flag them for the admins' review.
|
2014-04-17 16:13:59 -04:00
|
|
|
|
|
|
|
### Private Docker Repositories
|
|
|
|
|
2014-06-01 16:48:04 -04:00
|
|
|
To work with a private repository on [Docker Hub](https://hub.docker.com), you
|
|
|
|
will need to add one via the [Add Repository](https://registry.hub.docker.com/account/repositories/add/)
|
2014-04-26 08:00:01 -04:00
|
|
|
link. Once the private repository is created, you can `push` and `pull` images
|
|
|
|
to and from it using Docker.
|
2014-04-17 16:13:59 -04:00
|
|
|
|
|
|
|
> *Note:* You need to be signed in and have access to work with a private
|
|
|
|
> repository.
|
|
|
|
|
|
|
|
Private repositories are just like public ones. However, it isn't possible to
|
2014-04-26 08:00:01 -04:00
|
|
|
browse them or search their content on the public registry. They do not get cached
|
2014-04-17 16:13:59 -04:00
|
|
|
the same way as a public repository either.
|
|
|
|
|
|
|
|
It is possible to give access to a private repository to those whom you
|
|
|
|
designate (i.e., collaborators) from its settings page.
|
|
|
|
|
|
|
|
From there, you can also switch repository status (*public* to *private*, or
|
|
|
|
viceversa). You will need to have an available private repository slot open
|
|
|
|
before you can do such a switch. If you don't have any, you can always upgrade
|
2014-06-01 16:48:04 -04:00
|
|
|
your [Docker Hub](https://registry.hub.docker.com/plans/) plan.
|
2014-04-17 16:13:59 -04:00
|
|
|
|
|
|
|
### Collaborators and their role
|
|
|
|
|
|
|
|
A collaborator is someone you want to give access to a private repository. Once
|
|
|
|
designated, they can `push` and `pull`. Although, they will not be allowed to
|
|
|
|
perform any administrative tasks such as deleting the repository or changing its
|
|
|
|
status from private to public.
|
|
|
|
|
|
|
|
> **Note:** A collaborator can not add other collaborators. Only the owner of
|
|
|
|
> the repository has administrative access.
|
|
|
|
|
|
|
|
### Webhooks
|
|
|
|
|
|
|
|
You can configure webhooks on the repository settings page. A webhook is called
|
|
|
|
only after a successful `push` is made. The webhook calls are HTTP POST requests
|
|
|
|
with a JSON payload similar to the example shown below.
|
|
|
|
|
|
|
|
> **Note:** For testing, you can try an HTTP request tool like
|
|
|
|
> [requestb.in](http://requestb.in/).
|
|
|
|
|
|
|
|
*Example webhook JSON payload:*
|
|
|
|
|
|
|
|
{
|
|
|
|
"push_data":{
|
|
|
|
"pushed_at":1385141110,
|
|
|
|
"images":[
|
|
|
|
"imagehash1",
|
|
|
|
"imagehash2",
|
|
|
|
"imagehash3"
|
|
|
|
],
|
|
|
|
"pusher":"username"
|
|
|
|
},
|
|
|
|
"repository":{
|
|
|
|
"status":"Active",
|
|
|
|
"description":"my docker repo that does cool things",
|
2014-06-02 14:48:58 -04:00
|
|
|
"is_automated":false,
|
2014-04-17 16:13:59 -04:00
|
|
|
"full_description":"This is my full description",
|
2014-06-01 16:48:04 -04:00
|
|
|
"repo_url":"https://registry.hub.docker.com/u/username/reponame/",
|
2014-04-17 16:13:59 -04:00
|
|
|
"owner":"username",
|
|
|
|
"is_official":false,
|
|
|
|
"is_private":false,
|
|
|
|
"name":"reponame",
|
|
|
|
"namespace":"username",
|
|
|
|
"star_count":1,
|
|
|
|
"comment_count":1,
|
|
|
|
"date_created":1370174400,
|
|
|
|
"dockerfile":"my full dockerfile is listed here",
|
|
|
|
"repo_name":"username/reponame"
|
|
|
|
}
|
|
|
|
}
|