centos7下安装docker(只需三步轻松搞定)

1查询docker

[root@localhost ~]# yum search docker
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
base                                                                                                                                                | 3.6 kB  00:00:00     
extras                                                                                                                                              | 3.4 kB  00:00:00     
updates                                                                                                                                             | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/group_gz                                                                                                                       | 166 kB  00:00:00     
(2/4): extras/7/x86_64/primary_db                                                                                                                   | 187 kB  00:00:00     
(3/4): updates/7/x86_64/primary_db                                                                                                                  | 5.2 MB  00:00:01     
(4/4): base/7/x86_64/primary_db                                                                                                                     | 5.9 MB  00:00:02     
=========================================================================== N/S matched: docker ===========================================================================
cockpit-docker.x86_64 : Cockpit user interface for Docker containers
docker-client.x86_64 : Client side files for Docker
docker-client-latest.x86_64 : Client side files for Docker


  名称和简介匹配 only,使用“search all”试试。

2安装docker   yum install -y docker

[root@localhost ~]# yum install -y docker
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.13.1-74.git6e3bb8e.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.13.1-74.git6e3bb8e.el7.centos,它被软件包 2:docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.13.1-74.git6e3bb8e.el7.centos,它被软件包 2:docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64 需要
--> 正在处理依赖关系 subscription-manager-rhsm-certificates,它被软件包 2:docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64 需要
--> 正在检查事务

3测试          docker search jenkins    如果出现下列说明成功了

INDEX       NAME                                             DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/jenkins                                Official Jenkins Docker image                   3816      [OK]       
docker.io   docker.io/jenkins/jenkins                        The leading open source automation server       942                  
docker.io   docker.io/jenkinsci/jenkins                      Jenkins Continuous Integration and Deliver...   337                  
docker.io   docker.io/jenkinsci/blueocean                    https://jenkins.io/projects/blueocean           249                  
docker.io   docker.io/jenkinsci/jnlp-slave                   A Jenkins slave using JNLP to establish co...   90                   [OK]
docker.io   docker.io/jenkins/jnlp-slave                     a Jenkins agent (FKA "slave") using JNLP t...   47                   [OK]
docker.io   docker.io/jenkinsci/slave                        Base Jenkins slave docker image                 42                   [OK]
docker.io   docker.io/jenkinsci/ssh-slave                    A Jenkins SSH Slave docker image                33                   [OK]
docker.io   docker.io/cloudbees/jenkins-enterprise           CloudBees Jenkins Enterprise (Rolling rele...   31                   [OK]
docker.io   docker.io/aespinosa/jenkins                      Sets up a container with jenkins installed...   23                   [OK]
docker.io   docker.io/h1kkan/jenkins-docker                   Extended Jenkins docker image, bundled w...   15                   
docker.io   docker.io/openshift/jenkins-2-centos7            A Centos7 based Jenkins v2.x image for use...   15                   
docker.io   docker.io/bitnami/jenkins                        Bitnami Docker Image for Jenkins                13                   [OK]
docker.io   docker.io/blacklabelops/jenkins                  Docker Jenkins Swarm-Ready with HTTPS and ...   13                   [OK]
docker.io   docker.io/cloudbees/jenkins-operations-center    CloudBees Jenkins Operation Center (Rollin...   12                   [OK]
docker.io   docker.io/mesosphere/jenkins                     Jenkins on DC/OS Docker image.                  12                   
docker.io   docker.io/fabric8/jenkins-docker                 Fabric8 Jenkins Docker Image                    10                   [OK]
docker.io   docker.io/killercentury/jenkins-slave-dind       Generic Jenkins Slave with Docker Engine a...   9                    [OK]
docker.io   docker.io/vfarcic/jenkins-swarm-agent            Jenkins agent based on the Swarm plugin         8                    [OK]
docker.io   docker.io/publicisworldwide/jenkins-slave        Jenkins Slave based on Oracle Linux             5                    [OK]
docker.io   docker.io/openshift/jenkins-1-centos7            DEPRECATED: A Centos7 based Jenkins v1.x i...   4                    
docker.io   docker.io/openshift/jenkins-slave-base-centos7   A Jenkins slave base image.                     2                    
docker.io   docker.io/amazeeio/jenkins-slave                 A jenkins slave that connects to a master ...   0                    [OK]
docker.io   docker.io/ansibleplaybookbundle/jenkins-apb      An APB which deploys Jenkins CI                 0                    [OK]
docker.io   docker.io/jameseckersall/jenkins                 docker-jenkins (based on openshift jenkins...   0                    [OK]

 

 

 

你可能感兴趣的:(docker)