无法使用 OpenShift 构建服务构建映像:由于错误 reading/writing 流,无法实例化二进制构建
Unable to build the image using the OpenShift build service: Can't instantiate binary build, due to error reading/writing stream
当我尝试使用 Minishift 执行 Syndesis 图像的构建时,它以以下错误结束:
[ERROR] Failed to execute goal
io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i:
Failed to execute the build: Unable to build the image using the
OpenShift build service: Can't instantiate binary build, due to error
reading/writing stream. Can be caused if the output stream was closed
by the server. Connection reset
我查了一下 minishift 是 运行 "minishift status":
$ minishift status
Minishift: Running
Profile: minishift
OpenShift: Running (openshift v3.11.0+82a43f6-231)
DiskUsage: 76% of 20G (Mounted On: /mnt/sda1)
CacheUsage: 1.679 GB (used by oc binary, ISO or cached images)
并检查是否使用 "oc get pods" 命令安装了正确的 project/pods。
问题是 minishift 在 space 中是 运行。
我可以用命令
恢复一些space
$ syndesis dev --cleanup
执行此操作时,请确保 nip.io 域在您的计算机上正常工作。如果不是这种情况,请将以下条目添加到您的 /etc/hosts:
$IP $IP.nip.io syndesis.$IP.nip.io docker-registry-default.$IP.nip.io
其中 $IP 是 minishift 的 IP,您可以通过以下方式找到它:
$ minishift ip
192.168.42.58
当我尝试使用 Minishift 执行 Syndesis 图像的构建时,它以以下错误结束:
[ERROR] Failed to execute goal
io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i:
Failed to execute the build: Unable to build the image using the
OpenShift build service: Can't instantiate binary build, due to error
reading/writing stream. Can be caused if the output stream was closed
by the server. Connection reset
我查了一下 minishift 是 运行 "minishift status":
$ minishift status
Minishift: Running
Profile: minishift
OpenShift: Running (openshift v3.11.0+82a43f6-231)
DiskUsage: 76% of 20G (Mounted On: /mnt/sda1)
CacheUsage: 1.679 GB (used by oc binary, ISO or cached images)
并检查是否使用 "oc get pods" 命令安装了正确的 project/pods。
问题是 minishift 在 space 中是 运行。
我可以用命令
恢复一些space$ syndesis dev --cleanup
执行此操作时,请确保 nip.io 域在您的计算机上正常工作。如果不是这种情况,请将以下条目添加到您的 /etc/hosts:
$IP $IP.nip.io syndesis.$IP.nip.io docker-registry-default.$IP.nip.io
其中 $IP 是 minishift 的 IP,您可以通过以下方式找到它:
$ minishift ip
192.168.42.58