CentOS 7 (使用yum进行安装)Docker

1: 安装依赖

yum install -y yum-utils device-mapper-persistent-data lvm2

[root@jiaxin-ceshi logs]# yum install -y yum-utils device-mapper-persistent-data lvm2

2: 添加软件源信息

[root@jiaxin-ceshi logs]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo

3: 更新并安装 Docker-CE

[root@jiaxin-ceshi logs]# yum makecache fast
[root@jiaxin-ceshi logs]# yum -y install docker-ce

4: 开启Docker服务

[root@jiaxin-ceshi logs]# service docker start
Redirecting to /bin/systemctl start docker.service

[root@jiaxin-ceshi logs]# docker images
[root@jiaxin-ceshi logs]# docker ps
下面sk

[root@jiaxin-ceshi logs]# docker search nginx
NAME                                                   DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
nginx                                                  Official build of Nginx.                        9966                [OK]                
jwilder/nginx-proxy                                    Automated Nginx reverse proxy for docker con…   1436                                    [OK]
richarvey/nginx-php-fpm                                Container running Nginx + PHP-FPM capable of…   630                                     [OK]
jrcs/letsencrypt-nginx-proxy-companion                 LetsEncrypt container to use with nginx as p…   426                                     [OK]
kong                                                   Open-source Microservice & API Management la…   236                 [OK]                
webdevops/php-nginx                                    Nginx with PHP-FPM                              114                                     [OK]
kitematic/hello-world-nginx                            A light-weight nginx container that demonstr…   111                                     
zabbix/zabbix-web-nginx-mysql                          Zabbix frontend based on Nginx web-server wi…   74                                      [OK]
bitnami/nginx                                          Bitnami nginx Docker Image                      58                                      [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5   ubuntu-16-nginx-php-phpmyadmin-mysql-5          48                                      [OK]
linuxserver/nginx                                      An Nginx container, brought to you by LinuxS…   42                                      
tobi312/rpi-nginx                                      NGINX on Raspberry Pi / armhf                   23                                      [OK]
blacklabelops/nginx                                    Dockerized Nginx Reverse Proxy Server.          12                                      [OK]
wodby/drupal-nginx                                     Nginx for Drupal container image                11                                      [OK]
centos/nginx-18-centos7                                Platform for running nginx 1.8 or building n…   8                                       
webdevops/nginx                                        Nginx container                                 8                                       [OK]
nginxdemos/hello                                       NGINX webserver that serves a simple page co…   8                                       [OK]
centos/nginx-112-centos7                               Platform for running nginx 1.12 or building …   5                                       
1science/nginx                                         Nginx Docker images that include Consul Temp…   4                                       [OK]
travix/nginx                                           NGinx reverse proxy                             2                                       [OK]
pebbletech/nginx-proxy                                 nginx-proxy sets up a container running ngin…   2                                       [OK]
toccoag/openshift-nginx                                Nginx reverse proxy for Nice running on same…   1                                       [OK]
mailu/nginx                                            Mailu nginx frontend                            1                                       [OK]
ansibleplaybookbundle/nginx-apb                        An APB to deploy NGINX                          0                                       [OK]
wodby/nginx                                            Generic nginx                                   0                                       [OK]

以使用啦~!

上一篇:45套精美的 ( Android, iPhone, iPad ) 手机界面设计素材和线框图设计工具


下一篇:java异常架构图 和几个面试题