zoukankan      html  css  js  c++  java
  • 访问docker仓库

    Docker Hub

    目前 Docker 官方维护了一个公共仓库 Docker Hub,其中已经包括了数量超过 15,000 的镜

    像。大部分需求都可以通过在 Docker Hub 中直接下载镜像来实现。

    注册

    你可以在 https://cloud.docker.com 免费注册一个 Docker 账号。

    登录

    可以通过执行 docker login 命令交互式的输入用户名及密码来完成在命令行界面登录

    Docker Hub。

    你可以通过 docker logout 退出登录。

    拉取镜像

    你可以通过 docker search 命令来查找官方仓库中的镜像,并利用 docker pull 命令来将它

    下载到本地

    root@localhost ~]# docker search centos7.3
    NAME                                         DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
    erixero/centos7.3-base-image                 Centos 7.3 Base Image                           2                                       
    espaiva/centos7.3                            Centos 7.3 - Atualizado dia 11-07-2017 com s��   1                                       
    sirgong/centos7.3_supervisor                 摰�鈭upervisor餈�蝞∠�撌亙                             1                                       
    sirgong/centos7.3-sshd-redis3.2-supervisor   centos7.3 sshd supervisor redis                 1                                       
    zhangshengju/centos7.3                       This image contains iproute package based on��   0                                       
    ymark/centos7.3                              centos 7.3 with php-7.1.4 nginx-1.12.0 mysql��   0                                       
    sidclab/centos7.3-ansible                                                                    0                                       
    starx/centos7.3.1611-php-fpm                                                                 0                                       
    ekzm/centos7.3_php56                                                                         0                                       
    jites/centos7.3                                                                              0                                       
    crucify/centos7.3                            centos7.3 ip&ssh                                0                                       
    synchub/centos7.3-go1.12.5                                                                   0                                       
    t850008/centos7.3.1611_nginx1.0.12                                                           0                                       
    starx/centos7.3.1611-httpd                                                                   0                                       
    faressoft/centos7.3                                                                          0                                       
    yinjie/centos7.3-ssh                                                                         0                                       
    t850008/centos7.3.1611                                                                       0                                       
    justin1985/centos7.3                                                                         0                                       
    wangjicheng80/centos7.3.1611-tomcat-base                                                     0                                       
    erixero/centos7.3-jre8                       Centos 7.3 with Java JRE 8                      0                                       
    alang85/centos7.3                                                                            0                                       
    justin1985/centos7.3-tomcat8.5                                                               0                                       
    starx/centos7.3.1611-rabbitmq                                                                0                                       
    ekzm/centos7.3.1611                                                                          0                                       
    starx/centos7.3.1611-mysql                                                                   0                                       
    [root@localhost ~]# docker pull erixero/centos7.3-base-image
    Using default tag: latest
    latest: Pulling from erixero/centos7.3-base-image
    e81f4628aaec: Pull complete 
    Digest: sha256:6da167dc73d47699c9250d2edfdb6f33394c948378a1608e4e2d5bfa8bb59760
    Status: Downloaded newer image for erixero/centos7.3-base-image:latest
    docker.io/erixero/centos7.3-base-image:latest
    [root@localhost ~]# docker image ls
    REPOSITORY                     TAG                 IMAGE ID            CREATED                  SIZE
    ubuntu                         16.04               657d80a6401d        Less than a second ago   121MB
    nginx                          latest              ab56bba91343        Less than a second ago   126MB
    ubuntu                         v2                  a66d0fda4c36        3 hours ago              86.1MB
    <none>                         <none>              986426ddabcf        3 hours ago              86.1MB
    nginx                          v2                  06292a546f31        24 hours ago             126MB
    commit-test                    v1                  28a5df57c0b9        44 hours ago             447MB
    commit-test                    v2                  28a5df57c0b9        44 hours ago             447MB
    erixero/centos7.3-base-image   latest              ae904afa83bb        2 years ago              288MB
    ansible/centos7-ansible        latest              688353a31fde        2 years ago              447MB
    View Code

    推送镜像

     

     

    用户也可以在登录后通过 docker push 命令来将自己的镜像推送到 Docker Hub。

     

    以下命令中的 username 请替换为你的 Docker 账号用户名。

     

    突然想忽略了!  docker hub属于docker提供的官方仓库,服务器在国外,国内用户下载比较慢,建议使用阿里的免费私有仓库来使用

    参考之前的文章:https://www.cnblogs.com/python-cat/p/10365625.html

     

  • 相关阅读:
    bottombordertransition – 从中​​间扩展
    P3605 [USACO17JAN]Promotion Counting P
    CF817F MEX Queries
    2021.11.16模拟总结
    动态开点线段树学习笔记
    2021 NOIP 游记
    EntiyFramework :Update model from database引起的两个问题
    .NET Attribute(特性)的作用与用法——几句话解决Attribute使用的困惑
    前端CSS
    前端知识之HTML内容
  • 原文地址:https://www.cnblogs.com/python-cat/p/11670477.html
Copyright © 2011-2022 走看看