国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 系統(tǒng) > CentOS > 正文

centos6.7安裝Docker

2024-06-28 14:31:43
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
 

一、查看系統(tǒng)版本

 

[root@localhost ~]# cat /etc/redhat-release CentOS release 6.7 (Final)

 

  

 

二、安裝EPEL

1.進(jìn)入centos6系列EPEL下載地址

http://download.fedoraPRoject.org/pub/epel/6/i386/repoview/epel-release.html

  

2. wget下載

[root@localhost ~]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm--2015-09-10 17:50:49--  http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm正在解析主機(jī) download.fedoraproject.org... 67.219.144.68, 209.132.181.16, 66.35.62.162, ...正在連接 download.fedoraproject.org|67.219.144.68|:80... 已連接。已發(fā)出 HTTP 請(qǐng)求,正在等待回應(yīng)... 302 Found位置:http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm [跟隨至新的 URL]--2015-09-10 17:50:50--  http://mirrors.opencas.cn/epel/6/i386/epel-release-6-8.noarch.rpm正在解析主機(jī) mirrors.opencas.cn... 159.226.11.160, 2001:cc0:2004:1:225:90ff:fe00:fe8b, 2001:cc0:2004:1:225:90ff:fe3a:e6b5正在連接 mirrors.opencas.cn|159.226.11.160|:80... 已連接。已發(fā)出 HTTP 請(qǐng)求,正在等待回應(yīng)... 200 OK長(zhǎng)度:14540 (14K) [application/x-redhat-package-manager]正在保存至: “epel-release-6-8.noarch.rpm”100%[=======================================================================================================>] 14,540      12.9K/s   in 1.1s    2015-09-10 17:50:56 (12.9 KB/s) - 已保存 “epel-release-6-8.noarch.rpm” [14540/14540])

3.rpm安裝EPEL(我已經(jīng)安裝過(guò)了,所以顯示已經(jīng)安裝了)

[root@localhost ~]# rpm -ivh epel-release-6-8.noarch.rpmwarning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEYPreparing...                ########################################### [100%]	package epel-release-6-8.noarch is already installed

4.安裝好EPEL 源后,用yum 命令來(lái)檢查是否添加到源列表

root@localhost ~]#  yum repolist已加載插件:fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * epel: mirror01.idc.hinet.net * extras: mirrors.163.com * updates: mirrors.163.com倉(cāng)庫(kù)標(biāo)識(shí)                                          倉(cāng)庫(kù)名稱                                                                                 狀態(tài)base                                              CentOS-6 - Base                                                                           6,575*epel                                             Extra Packages for Enterprise linux 6 - x86_64                                           11,766extras                                            CentOS-6 - Extras                                                                            35updates                                           CentOS-6 - Updates                                                                          298repolist: 18,674

5.bingo,已經(jīng)添加。進(jìn)行緩存。

[root@localhost ~]# yum makecache已加載插件:fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileCould not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was12: Timeout on https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') * base: mirrors.hust.edu.cn * epel: ftp.cuhk.edu.hk * extras: centos.ustc.edu.cn * updates: centos.ustc.edu.cnbase                                                                                                                      | 3.7 kB     00:00     extras                                                                                                                    | 3.4 kB     00:00     updates                                                                                                                   | 3.4 kB     00:00     元數(shù)據(jù)緩存已建立

三、禁用selinux

1.查看selinux狀態(tài)

[root@localhost ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:#     enforcing - SELinux security policy is enforced.#     permissive - SELinux prints warnings instead of enforcing.#     disabled - No SELinux policy is loaded.SELINUX=enforcing# SELINUXTYPE= can take one of these two values:#     targeted - Targeted processes are protected,#     mls - Multi Level Security protection.SELINUXTYPE=targeted 

 

2.修改該配置文件中將enforcing替換為disabled

[root@localhost ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:#     enforcing - SELinux security policy is enforced.#     permissive - SELinux prints warnings instead of enforcing.#     disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:#     targeted - Targeted processes are protected,#     mls - Multi Level Security protection.SELINUXTYPE=targeted 

3.reboot重啟一下系統(tǒng),使生效。

四、準(zhǔn)備就緒,安裝docker-io,摸摸噠。

[root@localhost ~]# yum install docker-io已加載插件:fastestmirror, refresh-packagekit, security設(shè)置安裝進(jìn)程Loading mirror speeds from cached hostfile * base: mirrors.hust.edu.cn * epel: ftp.cuhk.edu.hk * extras: mirrors.163.com * updates: mirrors.163.com解決依賴關(guān)系--> 執(zhí)行事務(wù)檢查---> Package docker-io.x86_64 0:1.7.1-2.el6 will be 安裝--> 處理依賴關(guān)系 lxc,它被軟件包 docker-io-1.7.1-2.el6.x86_64 需要--> 處理依賴關(guān)系 libcgroup,它被軟件包 docker-io-1.7.1-2.el6.x86_64 需要--> 執(zhí)行事務(wù)檢查---> Package libcgroup.x86_64 0:0.40.rc1-16.el6 will be 安裝---> Package lxc.x86_64 0:1.0.7-2.el6 will be 安裝--> 處理依賴關(guān)系 lua-lxc(x86-64) = 1.0.7-2.el6,它被軟件包 lxc-1.0.7-2.el6.x86_64 需要--> 處理依賴關(guān)系 lua-alt-getopt,它被軟件包 lxc-1.0.7-2.el6.x86_64 需要--> 處理依賴關(guān)系 liblxc.so.1()(64bit),它被軟件包 lxc-1.0.7-2.el6.x86_64 需要--> 執(zhí)行事務(wù)檢查---> Package lua-alt-getopt.noarch 0:0.7.0-1.el6 will be 安裝---> Package lua-lxc.x86_64 0:1.0.7-2.el6 will be 安裝--> 處理依賴關(guān)系 lua-filesystem,它被軟件包 lua-lxc-1.0.7-2.el6.x86_64 需要---> Package lxc-libs.x86_64 0:1.0.7-2.el6 will be 安裝--> 執(zhí)行事務(wù)檢查---> Package lua-filesystem.x86_64 0:1.4.2-1.el6 will be 安裝--> 完成依賴關(guān)系計(jì)算依賴關(guān)系解決================================================================================================================================================= 軟件包                                架構(gòu)                          版本                                      倉(cāng)庫(kù)                         大小=================================================================================================================================================正在安裝: docker-io                             x86_64                        1.7.1-2.el6                               epel                        4.6 M為依賴而安裝: libcgroup                             x86_64                        0.40.rc1-16.el6                           base                        129 k lua-alt-getopt                        noarch                        0.7.0-1.el6                               epel                        6.9 k lua-filesystem                        x86_64                        1.4.2-1.el6                               epel                         24 k lua-lxc                               x86_64                        1.0.7-2.el6                               epel                         15 k lxc                                   x86_64                        1.0.7-2.el6                               epel                        120 k lxc-libs                              x86_64                        1.0.7-2.el6                               epel                        250 k事務(wù)概要=================================================================================================================================================Install       7 Package(s)總下載量:5.1 MInstalled size: 20 M確定嗎?[y/N]:

還需要我解釋么,一路y下去。

啟動(dòng)我們的寶貝docker

[root@localhost ~]# /etc/init.d/docker startStarting cgconfig service:                                 [確定]Starting docker:	                                   [確定]

查看docker進(jìn)程

[root@localhost ~]# ps -ef | grep dockerroot       3602      1  0 18:26 pts/0    00:00:00 /usr/bin/docker -droot       3745   3429  0 18:27 pts/0    00:00:00 grep docker

查看安裝的docker版本

Status: Downloaded newer image for centos:latest[root@localhost ~]# docker versionClient version: 1.7.1Client API version: 1.19Go version (client): go1.4.2Git commit (client): 786b29d/1.7.1OS/Arch (client): linux/amd64Server version: 1.7.1Server API version: 1.19Go version (server): go1.4.2Git commit (server): 786b29d/1.7.1OS/Arch (server): linux/amd64

注意:

我在這里并沒(méi)有升級(jí)系統(tǒng)內(nèi)核

[root@localhost ~]# uname -r2.6.32-573.3.1.el6.x86_64

docker官方文檔說(shuō)要求Linux kernel至少3.8以上。

在一個(gè)新的終端里守護(hù)模式運(yùn)行docker時(shí),會(huì)出現(xiàn)warning 

[root@localhost ~]# docker -dWARN[0000] You are running linux kernel version 2.6.32-573.3.1.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.10.0. 

但是目前表示我可以正常使用。


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 泸水县| 黄陵县| 马关县| 乌鲁木齐市| 潞城市| 交口县| 永州市| 恭城| 家居| 海林市| 新郑市| 措勤县| 名山县| 崇州市| 营口市| 平罗县| 察雅县| 郧西县| 武汉市| 涞源县| 唐河县| 宁乡县| 雷波县| 威信县| 安达市| 东莞市| 仲巴县| 台东县| 历史| 建阳市| 吴江市| 长岛县| 隆回县| 青州市| 启东市| 黔江区| 玉屏| 新巴尔虎左旗| 鲁山县| 海城市| 太和县|