Docker Hub的使用方法

文章目录

Docker Hub 地址
https://hub.docker.com/repositories

什么是Docker Hub

Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world’s largest repository of container images with an array of content sources including container community developers, open source projects and independent software vendors (ISV) building and distributing their code in containers.
Docker Hub 是 Docker 官方提供的镜像查找和分享的一项服务,目前包括了超过8,000,000个镜像 ,所以我们大部分需求都可以通过在 Docker Hub 中直接下载镜像来实现。

Docker Hub有哪些功能

  • Docker Hub类似于Github : 可以进行镜像仓库的 Push and pull container images.
  • 针对于企业和团队,提供私有的镜像仓库的管理(付费的)
  • Official Images, 可以获取一些Docker官方发布的镜像
  • Official Images: 可以获取一些社区和外部供应商发布的镜像
  • Builds: Automatically build container images from GitHub and Bitbucket and push them to Docker Hub.
  • Webhooks: Trigger actions after a successful push to a repository to integrate Docker Hub with other services.

如何使用 Docker Hub

docker 控制台操作

docker login  登录 
docker search 搜索镜像
docker pull 拉取镜像 
docker push {username}/{镜像名}:{tag}
docker push 推送镜像 
docker logout 退出登录 

上一篇:Selenium Grid的使用(分布式测试)


下一篇:CF510B Fox And Two Dots 题解