美文网首页
深入了解 docker 仓库

深入了解 docker 仓库

作者: tafanfly | 来源:发表于2019-04-09 17:57 被阅读0次

仓库(Repository)是集中存放镜像的地方, docker 有个官方的 公共仓库 Docker Hub

基本操作

  1. 打开上述官网网站可以进行个人注册, 可以根据需求创建自己的仓库。

    image.png
  2. 本地终端login, 后面就可以推送创建的镜像到自己的仓库了。

$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: tafanfly
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
  1. 可以使用docker search + 关键字 搜索相应的镜像

自动创建

允许用户通过 Docker Hub与GitHub相关联, 一旦项目发生新的提交,则自动执行创建。

创建私人仓库

官方提供 docker-registry 工具,用于构建私有的镜像仓库。

相关文章

网友评论

      本文标题:深入了解 docker 仓库

      本文链接:https://www.haomeiwen.com/subject/tpmiiqtx.html