一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

CentOS 6.8 安装Docker的步骤详解

时间:2022-06-30 20:50:33 编辑:袖梨 来源:一聚教程网

[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:
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 ~]#

热门栏目