Docker学习之路

Docker --- CentOS/Fedora

2019-03-12  本文已影响0人  李凈海
  CentOS/Fedora
    CentOS和Fedora都是基于Redhat的Linux发行版。前者兼容Redhat软件而命名,CentOS是企业级服务器的常用选型,后者则是主要面向个人用户。

    搜索CentOS
    --------------------------------------------------------------------
    [docker@localhost ~]$ sudo docker search -s 2 centos
    INDEX       NAME                                        DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
    docker.io   docker.io/centos                            The official build of CentOS.                   4419      [OK]       
    docker.io   docker.io/ansible/centos7-ansible           Ansible on Centos7                              114                  [OK]
    docker.io   docker.io/jdeathe/centos-ssh                CentOS-6 6.9 x86_64 / CentOS-7 7.4.1708 x8...   97                   [OK]
    docker.io   docker.io/consol/centos-xfce-vnc            Centos container with "headless" VNC sessi...   56                   [OK]
    docker.io   docker.io/tutum/centos                      Simple CentOS docker image with SSH access      43                   
    ...
    --------------------------------------------------------------------
    对最近的CentOS感兴趣的同学,只需一个命令就可以在Docker中来体验CentOS的魅力了。
    
    搜索Fedora
    首先改用docker search 命令开搜索标星至少为2的fedora相关镜像,结果如下:
    --------------------------------------------------------------------
    [docker@localhost ~]$ sudo docker search -s 2 fedora
    INDEX       NAME                                DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
    docker.io   docker.io/fedora                    Official Docker builds of Fedora                669       [OK]       
    docker.io   docker.io/mattdm/fedora             A basic Fedora image corresponding roughly...   49                   
    docker.io   docker.io/fedora/apache                                                             34                   [OK]
    docker.io   docker.io/mattsch/fedora-nzbhydra   Fedora NZBHydra                                 5                    [OK]
    docker.io   docker.io/darksheer/fedora22        Base Fedora 22 Image -- Updated hourly          2                    [OK]
    docker.io   docker.io/vbatts/fedora-varnish     https://github.com/vbatts/laughing-octo/tr...   2                    [OK]
    ...
    --------------------------------------------------------------------
    根据搜索出来的结果,同学可以习性选择下载并使用。

上一篇下一篇

猜你喜欢

热点阅读