CentOS 6.8 安裝Docker的步驟詳解

來源:互聯網
上載者:User

[root@DS-VM-Node211 ~]# curl -Lks https://yum.spaceduck.org/kernel-ml-aufs/kernel-ml-aufs.repo >/etc/yum.repos.d/kernel-ml-aufs.repo
[root@DS-VM-Node211 ~]# yum remove kernel-headers -y
[root@DS-VM-Node211 ~]# yum install kernel-ml-aufs kernel-ml-aufs-devel kernel-ml-aufs-headers -y
[root@DS-VM-Node239 ~]# awk '/^(default|title)/' /boot/grub/grub.conf
default=1
title CentOS (4.6.4-1.el6.x86_64)
title CentOS 6 (2.6.32-642.1.1.el6.centos.plus.x86_64)
[root@DS-VM-Node239 ~]# sed -i 's/default=.*/default=0/' /boot/grub/grub.conf
[root@DS-VM-Node239 ~]# awk '/^(default|title)/' /boot/grub/grub.conf
default=0
title CentOS (4.6.4-1.el6.x86_64)
title CentOS 6 (2.6.32-642.1.1.el6.centos.plus.x86_64)
[root@DS-VM-Node239 ~]# reboot

 

[root@DS-VM-Node239 ~]# yum install epel-release -y
[root@DS-VM-Node239 ~]# yum install docker-io

 

[root@DS-VM-Node239 ~]# service docker start
Starting cgconfig service:                                 [確定]
Starting docker:                                           [確定]
[root@DS-VM-Node239 ~]# docker info
Containers: 0
Images: 0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.6.4-1.el6.x86_64
Operating System: <unknown>
CPUs: 1
Total Memory: 482.8 MiB
Name: DS-VM-Node239.cluster.com
ID: LBKG:VOIP:EROQ:YVQ6:32BQ:TJKQ:P3BX:4BRE:62XD:JLHQ:EL6Y:IJZ4
WARNING: No swap limit support
[root@DS-VM-Node239 ~]#

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.