Linux之CentOS 6.8 安装Docker

[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 ~]# 
Linux最后更新:2016-8-11
lookback
  • 本文由 发表于 2016年7月24日09:21:57
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: