我正在尝试在ubuntu 16.04 ppc64le(IBM POWER8)上运行openshift。
我成功地从源代码(openshift origin)构建了二进制文件,并开始使用openshift。
然而,当我做了" oc cluster up"时,我看到它拉开了openshift / origin:来自互联网的v3.6.1图像,它最终失败了。
我认为Redhat推动了openshift / origin:仅针对x86架构的v3.6.1,而不是针对ppc64le。
如果我自己构建图像,如何将其配置为使用openshift / origin-ppc64le:v3.6.1?
以下是我得到的错误" oc cluster up"。
u0017649@sys-90043:~/origin/_output/local/bin/linux/ppc64le$ sudo ./oc cluster up
Starting OpenShift using openshift/origin:v3.6.1 ...
Pulling image openshift/origin:v3.6.1
Pulled 1/4 layers, 26% complete
Pulled 1/4 layers, 51% complete
Pulled 2/4 layers, 73% complete
Pulled 2/4 layers, 82% complete
Pulled 2/4 layers, 89% complete
Pulled 3/4 layers, 97% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v3.6.1 image ...
Pulling image openshift/origin:v3.6.1
Pulled 1/4 layers, 26% complete
Pulled 1/4 layers, 51% complete
Pulled 2/4 layers, 73% complete
Pulled 2/4 layers, 82% complete
Pulled 2/4 layers, 89% complete
Pulled 3/4 layers, 97% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... FAIL
Error: Cannot get TCP port information from Kubernetes host
Caused By:
Error: Docker run error rc=1
Details:
Image: openshift/origin:v3.6.1
Entrypoint: [/bin/bash]
Command: [-c cat /proc/net/tcp && ( [ -e /proc/net/tcp6 ] && cat /proc/net/tcp6 || true)]
Error Output:
standard_init_linux.go:187: exec user process caused "exec format error"
答案 0 :(得分:0)
如果您构建了二进制文件,那么您应该能够使用hack/build-local-images.py
脚本将这些二进制文件推送到本地映像中。当您运行oc
时,请指定版本,并且应该从您刚刚创建的图片开始:oc cluster up --version latest
。
这适用于x86,YMMV
答案 1 :(得分:0)
您可以标记自己的构建图像openshift/origin-ppc64le:v3.6.1
而不是openshift/origin:v3.6.1
来欺骗sudo ./oc cluster up
到ppc64le图像。
以前似乎已经尝试过使Google Test document的多体系结构图像