创建一个仓库
登录到 Docker Hub.
选择存储库。
在右上角附近,选择创建仓库。
选择一个命名空间。
您可以选择将其定位在您自己的用户账户下,或者定位在您作为所有者或编辑的任何组织下。
指定仓库名称。
仓库名称需要:
- Be unique
- Have between 2 and 255 characters
- Only contain lowercase letters, numbers, hyphens (
-), and underscores (_)
注意
一旦创建了Docker Hub仓库,您就无法重命名它。
指定简短描述。
描述最多可以包含100个字符。它出现在搜索结果中。
选择默认的可见性。
- Public: The repository appears in Docker Hub search results and can be pulled by everyone.
- Private: The repository doesn't appear in Docker Hub search results and is only accessible to you and collaborators. In addition, if you selected an organization's namespace, then the repository is accessible to those with applicable roles or permissions. For more details, see 角色和权限.
注意
对于创建新仓库的组织,如果您不确定选择哪种可见性,那么Docker建议您选择私有。
选择创建。
仓库创建后,常规页面会出现。您现在可以管理: