我正在跟进斯塔克与韦恩 https://github.com/starkandwayne/concourse-tutorial/tree/master/10_job_inputs教程并遇到了问题:
管道失败
hijack: Backend error: Exit status: 500, message {"Type":"","Message": "
runc exec: exit status 1: exec failed: container_linux.go:247:
starting container process caused \"exec format error\"\n","Handle":""}
我有一个git
资源和一项任务的一项工作:
- task: test
file: resource-ci/ci/test.yml
测试.yml 文件:
platform: linux
image_resource:
type: docker-image
source:
repository: busybox
tag: latest
inputs:
- name: resource-tool
run:
path: resource-tool/scripts/deploy.sh
deploy.sh
是一个简单的虚拟文件echo
command
echo [+] Testing in the process ...
那么它可能是什么?
此错误意味着它尝试在脚本中调用的 shell 在运行任务的容器上不可用。
Busybox 不附带 bash,它只附带/bin/sh
,检查 shebangdeploy.sh
,确保它看起来像:
#!/bin/sh
# rest of script
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)