Openshift yum安装:
Yum 安装docker
[root@DockerServer openshift]# yum repolist
[root@DockerServer openshift]# yum install docker
[root@DockerServer openshift]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
vi修改 /etc/docker/daemon.json
{
“registry-mirrors”: [“https://registry.docker-cn.com“]
}
[root@DockerServer openshift]# systemctl start docker
yum安装Openshift
[root@DockerServer sky]# yum list all | grep openshift
centos-release-openshift-origin.noarch 1-1.el7.centos extras
centos-release-openshift-origin13.noarch 1-1.el7.centos extras
centos-release-openshift-origin14.noarch 1-1.el7.centos extras
centos-release-openshift-origin15.noarch 1-1.el7.centos extras
centos-release-openshift-origin36.noarch 1-1.el7.centos extras
centos-release-openshift-origin37.noarch 1-1.el7.centos extras
[root@DockerServer sky]# yum info centos-release-openshift-origin37.noarch
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
可安装的软件包
名称 :centos-release-openshift-origin37
架构 :noarch
版本 :1
发布 :1.el7.centos
大小 :11 k
源 :extras/x86_64
简介 : Yum configuration for OpenShift Origin 3.7 packages
网址 :https://wiki.centos.org/SpecialInterestGroup/PaaS/OpenShift
协议 : GPLv2
描述 : yum configuration for OpenShift Origin 3.7 packages as delivered via the
: CentOS PaaS SIG.
[root@DockerServer sky]# rpm -ql centos-release-openshift-origin37
/etc/yum.repos.d/CentOS-OpenShift-Origin37.repo
/usr/share/licenses/centos-release-openshift-origin37-1
/usr/share/licenses/centos-release-openshift-origin37-1/LICENSE
[root@DockerServer sky]# ll /etc/yum.repos.d/
总用量 40
-rw-r--r-- 1 root root 2373 3月 31 16:14 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 8月 30 2017 CentOS-CR.repo
-rw-r--r--. 1 root root 649 8月 30 2017 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 8月 30 2017 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 8月 30 2017 CentOS-Media.repo
-rw-r--r-- 1 root root 884 12月 9 05:26 CentOS-OpenShift-Origin37.repo
-rw-r--r--. 1 root root 1331 8月 30 2017 CentOS-Sources.repo
-rw-r--r--. 1 root root 3830 8月 30 2017 CentOS-Vault.repo
-rw-r--r-- 1 root root 2424 3月 31 16:15 docker-ce.repo
-rw-r--r-- 1 root root 653 12月 27 08:32 docker.repo
[root@DockerServer yum.repos.d]# yum install origin
[root@DockerServer yum.repos.d]# service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since 日 2018-04-15 14:57:02 CST; 14min ago
Docs: http://docs.docker.com
Main PID: 1304 (dockerd-current)
CGroup: /system.slice/docker.service
├─1304 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=dock... └─1309 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-inter...
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.215502220+08:00" level=info msg="Loading conta...tart."
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.218886862+08:00" level=info msg="Firewalld run...false"
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.264772799+08:00" level=info msg="Default bridg...dress"
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.287595155+08:00" level=info msg="Loading conta...done."
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.291466599+08:00" level=warning msg="failed to ...dev "
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.291496812+08:00" level=warning msg="failed to ...rsion"
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.291901441+08:00" level=info msg="Daemon has co...ation"
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.291913977+08:00" level=info msg="Docker daemon...1.13.1
4月 15 14:57:02 DockerServer dockerd-current[1304]: time="2018-04-15T14:57:02.308508423+08:00" level=info msg="API listen on....sock"
4月 15 14:57:02 DockerServer systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
[root@DockerServer yum.repos.d]# openshift start
访问https://192.168.1.151:8443