{"action":"opened","issue":{"url":"https://api.github.com/repos/buildkite-plugins/docker-buildkite-plugin/issues/15","repository_url":"https://api.github.com/repos/buildkite-plugins/docker-buildkite-plugin","labels_url":"https://api.github.com/repos/buildkite-plugins/docker-buildkite-plugin/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/buildkite-plugins/docker-buildkite-plugin/issues/15/comments","events_url":"https://api.github.com/repos/buildkite-plugins/docker-buildkite-plugin/issues/15/events","html_url":"https://github.com/buildkite-plugins/docker-buildkite-plugin/issues/15","id":299609127,"number":15,"title":"docker: command not found","user":{"login":"micapam","id":165087,"avatar_url":"https://avatars2.githubusercontent.com/u/165087?v=4","gravatar_id":"","url":"https://api.github.com/users/micapam","html_url":"https://github.com/micapam","followers_url":"https://api.github.com/users/micapam/followers","following_url":"https://api.github.com/users/micapam/following{/other_user}","gists_url":"https://api.github.com/users/micapam/gists{/gist_id}","starred_url":"https://api.github.com/users/micapam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micapam/subscriptions","organizations_url":"https://api.github.com/users/micapam/orgs","repos_url":"https://api.github.com/users/micapam/repos","events_url":"https://api.github.com/users/micapam/events{/privacy}","received_events_url":"https://api.github.com/users/micapam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T06:10:19Z","updated_at":"2018-02-23T06:10:19Z","closed_at":null,"author_association":"NONE","body":"I'm not sure if I'm doing something wrong, or if this is an actual bug, so apologies if it's the former. \r\n\r\nWhatever I do, I get the error `docker: command not found`. Even if my step is something very simple, like an echo statement:\r\n\r\n```\r\nRunning echo 'Does this work?' in docker:latest | 0s\r\n-- | --\r\n  | /home/buildkite/.buildkite-agent/plugins/github-com-buildkite-plugins-docker-buildkite-plugin-v1-1-0/hooks/command: line 66: docker: command not found\r\n\r\nRunning plugin github.com/buildkite-plugins/docker-buildkite-plugin#v1.1.1 command hook | 0s\r\n-- | --\r\n  | # Executing \"/home/buildkite/.buildkite-agent/plugins/github-com-buildkite-plugins-docker-buildkite-plugin-v1-1-1/hooks/command\"\r\n  |   | Running echo 'Does this work?' . in docker:latest | 0s\r\n  | /home/buildkite/.buildkite-agent/plugins/github-com-buildkite-plugins-docker-buildkite-plugin-v1-1-1/hooks/command: line 62: docker: command not found\r\n```\r\n\r\nHere is my pipeline.yml: \r\n\r\n```\r\nsteps: \r\n  - label: ':factory: build rubocop image'\r\n    command: echo 'Does this work?'\r\n    plugins: \r\n      docker#v1.1.1:\r\n        image: \"docker:latest\"\r\n        mounts: \r\n          - /var/run/docker.sock:/var/run/docker.sock\r\n```\r\n\r\nI took a look at the hook script and the failing line (62) is: \r\n\r\n`docker run \"${args[@]}\" \"${BUILDKITE_PLUGIN_DOCKER_IMAGE}\" bash -c \"${BUILDKITE_COMMAND}\"`"}}
{"actor":{"display_login":"micapam"}}