Docker Hub的使用方法

2021/7/15 23:40:12

本文主要是介绍Docker Hub的使用方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

文章目录

    • 什么是Docker Hub
    • Docker Hub有哪些功能
    • 如何使用 Docker Hub
      • docker 控制台操作

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 退出登录 

  • Docker Hub Quickstart
  • apollo_docker.sh 镜像的生成与发布


这篇关于Docker Hub的使用方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程