本次基于Centos7系统上搭建docker单节点,并通过Rehdat的UI管理工具cockpit管理容器;
时间同步:
yum install ntp -y
timedatectl set-ntp true
检查是否正常同步:
[root@node7 ~]# timedatectl
Local time: Fri 2017-03-31 14:13:07 CST
Universal time: Fri 2017-03-31 06:13:07 UTC
RTC time: Fri 2017-03-31 14:13:03
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: yes #此处为yes即正常了,发现时间已经同步到最新了
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
安装EPEL源,本次使用yum源安装:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum repolist
安装相应的服务
yum install docker cockpit cockpit-kubernetes -y
cockpit cockpit-kubernetes 为Redhat的UI管理工具,详细介绍可以自行google
把服务添加到启动项,并启动服务:
for SERVICE in docker cockpit; do
systemctl start $SERVICE
systemctl enable $SERVICE
done
打开浏览器:http://10.0.10.135:9090
登陆帐号:root
系统密码:root的密码
安装过程非常简单,那么如何使用呢?下次继续;