Linux之CentOS 6.8 安装Docker

[[email protected] ~]# curl -Lks https://yum.spaceduck.org/kernel-ml-aufs/kernel-ml-aufs.repo >/etc/yum.repos.d/kernel-ml-aufs.repo
[[email protected] ~]# yum remove kernel-headers -y
[[email protected] ~]# yum install kernel-ml-aufs kernel-ml-aufs-devel kernel-ml-aufs-headers -y
[[email protected] ~]# 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)
[[email protected] ~]# sed -i 's/default=.*/default=0/' /boot/grub/grub.conf
[[email protected] ~]# 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)
[[email protected] ~]# reboot
[[email protected] ~]# yum install epel-release -y
[[email protected] ~]# yum install docker-io
[[email protected] ~]# service docker start
Starting cgconfig service:                                 [确定]
Starting docker:                                           [确定]
[[email protected] ~]# 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
[[email protected] ~]# 
Linux最后更新:2016-8-11
  • 本文由 发表于 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: