[GH-ISSUE #212] OCI runtime create failed message with docker: uses #147

Closed
opened 2026-03-01 21:40:38 +03:00 by kerem · 5 comments
Owner

Originally created by @dlgreenwald-els on GitHub (Apr 28, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/212

I'm trying to setup a simple Markdown Linter in a project with the following Workflow:

name: ADR Markdown Linter

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  pull_request:
    branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  lintADRS:
    name: Lint changelog file
    runs-on: ubuntu-latest
    steps:
    - name: Check out code
      uses: actions/checkout@v2

    - name: Lint changelog file
      uses: docker://avtodev/markdown-lint:v1.1.0
      with:
        rules: '/lint/rules/changelog.js'
        config: '/lint/config/changelog.yml'
        args: 'README.md'

When I try to run with act pull_request I get the following error.

❯ act  pull_request
[ADR Markdown Linter/Lint changelog file] 🚀  Start image=node:12.6-buster-slim
[ADR Markdown Linter/Lint changelog file]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[ADR Markdown Linter/Lint changelog file]   🐳  docker cp src=/Users/greenwda/ADRS/rtarchitecture-adrs/. dst=/github/workspace
[ADR Markdown Linter/Lint changelog file] ⭐  Run Check out code
[ADR Markdown Linter/Lint changelog file]   ✅  Success - Check out code
[ADR Markdown Linter/Lint changelog file] ⭐  Run Lint changelog file
[ADR Markdown Linter/Lint changelog file]   🐳  docker run image=avtodev/markdown-lint:v1.1.0 entrypoint=[] cmd=["README.md"]
[ADR Markdown Linter/Lint changelog file]   ❌  Failure - Lint changelog file
Error: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"README.md\": executable file not found in $PATH": unknown

When I run the markdown-lint image directly it works fine, but would very much like to utilize the workflow locally for testing purposes rather than constant submission of pull requests.

I posted for advice on the gitter.im channel and was asked to create an issue.
https://gitter.im/nektos/act?at=5ea848ccb6dd2306979157d3

Originally created by @dlgreenwald-els on GitHub (Apr 28, 2020). Original GitHub issue: https://github.com/nektos/act/issues/212 I'm trying to setup a simple Markdown Linter in a project with the following Workflow: ``` name: ADR Markdown Linter # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: pull_request: branches: [ master ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: lintADRS: name: Lint changelog file runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v2 - name: Lint changelog file uses: docker://avtodev/markdown-lint:v1.1.0 with: rules: '/lint/rules/changelog.js' config: '/lint/config/changelog.yml' args: 'README.md' ``` When I try to run with `act pull_request` I get the following error. ``` ❯ act pull_request [ADR Markdown Linter/Lint changelog file] 🚀 Start image=node:12.6-buster-slim [ADR Markdown Linter/Lint changelog file] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [ADR Markdown Linter/Lint changelog file] 🐳 docker cp src=/Users/greenwda/ADRS/rtarchitecture-adrs/. dst=/github/workspace [ADR Markdown Linter/Lint changelog file] ⭐ Run Check out code [ADR Markdown Linter/Lint changelog file] ✅ Success - Check out code [ADR Markdown Linter/Lint changelog file] ⭐ Run Lint changelog file [ADR Markdown Linter/Lint changelog file] 🐳 docker run image=avtodev/markdown-lint:v1.1.0 entrypoint=[] cmd=["README.md"] [ADR Markdown Linter/Lint changelog file] ❌ Failure - Lint changelog file Error: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"README.md\": executable file not found in $PATH": unknown ``` When I run the markdown-lint image directly it works fine, but would very much like to utilize the workflow locally for testing purposes rather than constant submission of pull requests. I posted for advice on the gitter.im channel and was asked to create an issue. https://gitter.im/nektos/act?at=5ea848ccb6dd2306979157d3
Author
Owner

@publicarray commented on GitHub (May 1, 2020):

Hm maybe try setting the entrypoint as a workaround?

- name: Lint changelog file
      uses: docker://avtodev/markdown-lint:v1.1.0
      with:
        rules: '/lint/rules/changelog.js'
        config: '/lint/config/changelog.yml'
        entrypoint: /docker-entrypoint.sh # or wherever the markdownlint binary is located
        args: 'README.md'
<!-- gh-comment-id:622189678 --> @publicarray commented on GitHub (May 1, 2020): Hm maybe try setting the entrypoint as a workaround? ```yml - name: Lint changelog file uses: docker://avtodev/markdown-lint:v1.1.0 with: rules: '/lint/rules/changelog.js' config: '/lint/config/changelog.yml' entrypoint: /docker-entrypoint.sh # or wherever the markdownlint binary is located args: 'README.md' ```
Author
Owner

@ringods commented on GitHub (May 18, 2020):

I encountered this issue too when trying to run Pulumi in Github Actions. They currently advertise the docker: protocol in their documentation:

https://www.pulumi.com/docs/guides/continuous-delivery/github-actions/#the-pull-request-workflow-file

<!-- gh-comment-id:630381029 --> @ringods commented on GitHub (May 18, 2020): I encountered this issue too when trying to run [Pulumi](https://www.pulumi.com/) in Github Actions. They currently advertise the `docker:` protocol in their documentation: https://www.pulumi.com/docs/guides/continuous-delivery/github-actions/#the-pull-request-workflow-file
Author
Owner

@github-actions[bot] commented on GitHub (Jul 18, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:660390200 --> @github-actions[bot] commented on GitHub (Jul 18, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@ringods commented on GitHub (Jul 20, 2020):

Can someone label this issue to prevent it from becoming stale?

<!-- gh-comment-id:660842544 --> @ringods commented on GitHub (Jul 20, 2020): Can someone label this issue to prevent it from becoming stale?
Author
Owner

@github-actions[bot] commented on GitHub (Sep 19, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:695136717 --> @github-actions[bot] commented on GitHub (Sep 19, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#147
No description provided.