1

大厅你好世界没有被执行。我从以下网址关注了 hello world https://concoursetutorial.com/basics/task-hello-world/

git clone https://github.com/starkandwayne/concourse-tutorial.git cd concourse-tutorial/tutorials/basic/task-hello-world fly -t 教程执行 -c task_hello_world.yml

以下是我遇到的错误。任何人都可以指出正确的方向吗,config.json 出现了一些权限被拒绝的错误。

Mar  7 04:49:23 bishwajitsamanta16891c concourse_worker[7683]: {"timestamp":"1551934163.558898449","source":"guardian","message":"guardian.api.garden-server.run.failed","log_level":2,"data":{"error":"runc exec: exit status 1: exec failed: container_linux.go:348: starting container process caused \"chdir to cwd (\\\"/root\\\") set in config.json failed: permission denied\"\n","handle":"9c8d67ca-0994-482c-5ef4-89b8993afb83","session":"3.1.13"}}
Mar  7 04:49:23 bishwajitsamanta16891c concourse_web[7673]: {"timestamp":"1551934163.559687376","source":"atc","message":"atc.create-build.image.failed-to-get-latest-image-version","log_level":2,"data":{"container":"bc21e0c6-ad3a-4650-5539-d7813e3f33ac","error":"Backend error: Exit status: 500, message: {\"Type\":\"\",\"Message\":\"runc exec: exit status 1: exec failed: container_linux.go:348: starting container process caused \\\"chdir to cwd (\\\\\\\"/root\\\\\\\") set in config.json failed: permission denied\\\"\\n\",\"Handle\":\"\",\"ProcessID\":\"\",\"Binary\":\"\"}\n","session":"131.2"}}



root@bishwajitsamanta16891c:~# fly -t my-ci ws
name                                    containers  platform  tags  team  state    version
bishwajitsamanta16891c.mylabserver.com  0           linux     none  none  running  2.0


cloud_user@bishwajitsamanta16891c:~/concourse-tutorial/tutorials/basic/task-hello-world$ sudo fly -t my-ci execute -c task_hello_world.yml
executing build 12 at http://172.31.20.27:8080/builds/12
initializing
Backend error: Exit status: 500, message: {"Type":"","Message":"runc exec: exit status 1: exec failed: container_linux.go:348: starting container process caused \"chdir to cwd (\\\"/root\\\") set in config.json failed: permission denied\"\n","Handle":"","ProcessID":"","Binary":""}

errored


task_hello_world.yml
---
platform: linux

image_resource:
  type: docker-image
  source: {repository: ubuntu}

run:
  path: echo
  args: [hello world]
4

1 回答 1

0

抱歉,伙计们的问题已解决,我刚刚卸载了 Docker。

于 2019-03-07T11:23:47.967 回答