Repository: nektos/act (language: go)

Issue:
Issue: failed to run docker containers as steps
## System information

<!--
    - Operating System: < Windows | Linux | macOS | etc... >
    - Architecture: < x64 (64-bit) | x86 (32-bit) | arm64 (64-bit) | arm (32-bit) | etc... >
    - Apple M1: < yes | no >
    - Docker version: < output of `docker system info -f "{{.ServerVersion}}"` >
    - Docker image used in `act`: < can be omitted if it's included in log >
    - `act` version: < output of `act --version`, if you've built `act` yourself, please provide commit hash >
-->

- Operating System: Debian Linux
- Architecture: amd64
- Docker version: Docker version 20.10.8+dfsg1, build 3967b7d
- Docker image used in `act`: node:12-buster-slim
- `act` version: Latest `master`

## Expected behaviour

This workflow should output the node.js version installed in the alpine container:

```yml
name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: docker://node:alpine
        with:
          args: -v
```

## Actual behaviour

This is the panic log:

```
DEBU[0000] Loading environment from /tmp/act-test/.env  
DEBU[0000] Loading secrets from /tmp/act-test/.secrets  
DEBU[0000] Loading workflows from '/tmp/act-test/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'test.yml' in '/tmp/act-test/.github/workflows/test.yml' 
DEBU[0000] Reading workflow '/tmp/act-test/.github/workflows/test.yml' 
DEBU[0000] Correcting if statements '/tmp/act-test/.github/workflows/test.yml' 
DEBU[0000] Planning event: push                         
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[]                       
DEBU[0000] context env => map[ACT:true]                 
DEBU[0000] context needs => map[]                       
[CI/build] 🚀  Start image=node:12-buster-slim
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
[CI/build]   🐳  docker pull image=node:12-buster-slim platform= username= forcePull=false
[CI/build]   🐳  docker pull node:12-buster-slim
DEBU[0000] Image exists? true                           
[CI/build] Removed container: 1eb85585a1a28a285a05dfe1a4552fd7a1749557ddcef4b86db084d761dc8fcf
[CI/build]   🐳  docker volume rm act-CI-build
[CI/build]   🐳  docker create image=node:12-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/build] Created container name=act-CI-build id=3b969259a97e0bd45c7cd23c8b1a6a41e1b7d4daf42ce351686c7b2be709174e from image node:12-buster-slim (platform: )
[CI/build] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[CI/build]   🐳  docker run image=node:12-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/build] Starting container: 3b969259a97e0bd45c7cd23c8b1a6a41e1b7d4daf42ce351686c7b2be709174e
[CI/build] Started container: 3b969259a97e0bd45c7cd23c8b1a6a41e1b7d4daf42ce351686c7b2be709174e
[CI/build]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[CI/build] Exec command '[mkdir -m 0777 -p /var/run/act]'
[CI/build] Working directory '/tmp/act-test'
DEBU[0000] Writing entry to tarball workflow/event.json len:2 
DEBU[0000] Writing entry to tarball workflow/envs.txt len:0 
DEBU[0000] Writing entry to tarball workflow/paths.txt len:0 
[CI/build] Extracting content to '/var/run/act/'
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:success outcome:success outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:success outcome:success outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test INPUT_ARGS:-v ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
[CI/build] setupEnv => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test INPUT_ARGS:-v ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15]
[CI/build] ⭐  Run docker://node:alpine
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:success outcome:success outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:success outcome:success outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:success outcome:success outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test INPUT_ARGS:-v ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
[CI/build]   🐳  docker pull image=node:alpine platform= username= forcePull=false
[CI/build]   🐳  docker pull node:alpine
DEBU[0000] Image exists? true                           
[CI/build]   🐳  docker create image=node:alpine platform= entrypoint=[] cmd=["-v"]
[CI/build] Created container name=act-CI-build-0 id=c07bf68d98de373eb1d09b4f76a89f37558a4829a5756e0453b1884b58990b96 from image node:alpine (platform: )
[CI/build] ENV ==> [RUNNER_PERFLOG=/dev/null YARN_VERSION=1.22.15 GITHUB_TOKEN= ImageOS=ubuntu20 GITHUB_ACTION_REPOSITORY= GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_REPOSITORY_OWNER=ZauberNerd GITHUB_ACTION_REF= NODE_VERSION=12.22.7 CI=true GITHUB_JOB=build GITHUB_RETENTION_DAYS=0 GITHUB_RUN_ID=1 GITHUB_BASE_REF= GITHUB_EVENT_NAME=push GITHUB_ACTIONS=true GITHUB_REF=refs/heads/docker-uses INPUT_ARGS=-v RUNNER_TRACKING_ID= GITHUB_ENV=/var/run/act/workflow/envs.txt GITHUB_SHA=e5ff86528d69197caaf191cd157a609333c52787 GITHUB_REPOSITORY=ZauberNerd/act-test GITHUB_SERVER_URL=https://github.com GITHUB_WORKFLOW=CI GITHUB_PATH=/var/run/act/workflow/paths.txt GITHUB_HEAD_REF= GITHUB_RUN_NUMBER=1 ACT=true GITHUB_EVENT_PATH=/var/run/act/workflow/event.json PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GITHUB_ACTOR=nektos/act GITHUB_ACTION=0 GITHUB_WORKSPACE=/tmp/act-test GITHUB_API_URL=https://api.github.com RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[CI/build]   🐳  docker run image=node:alpine platform= entrypoint=[] cmd=["-v"]
[CI/build] Starting container: c07bf68d98de373eb1d09b4f76a89f37558a4829a5756e0453b1884b58990b96
DEBU[0000] Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-v": executable file not found in $PATH: unknown
github.com/nektos/act/pkg/container.(*containerReference).start.func1
	/home/markusw/source/act/pkg/container/docker_run.go:745
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:133
github.com/nektos/act/pkg/common.Executor.IfNot.func1
	/home/markusw/source/act/pkg/common/executor.go:164
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/runner.(*StepContext).runUsesContainer.func1
	/home/markusw/source/act/pkg/runner/step_context.go:328
github.com/nektos/act/pkg/runner.(*RunContext).newStepExecutor.func1
	/home/markusw/source/act/pkg/runner/run_context.go:339
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:133
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.If.func1
	/home/markusw/source/act/pkg/common/executor.go:154
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/runner.(*runnerImpl).NewPlanExecutor.func1
	/home/markusw/source/act/pkg/runner/runner.go:157
github.com/nektos/act/pkg/common.Executor.ChannelError.func1
	/home/markusw/source/act/pkg/common/executor.go:125
github.com/nektos/act/pkg/common.NewParallelExecutor.func1.1
	/home/markusw/source/act/pkg/common/executor.go:101
runtime.goexit
	/home/markusw/.gvm/gos/go1.16.3/src/runtime/asm_amd64.s:1371 
[CI/build] Removed container: c07bf68d98de373eb1d09b4f76a89f37558a4829a5756e0453b1884b58990b96
[CI/build]   ❌  Failure - docker://node:alpine
DEBU[0000] Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-v": executable file not found in $PATH: unknown
github.com/nektos/act/pkg/container.(*containerReference).start.func1
	/home/markusw/source/act/pkg/container/docker_run.go:745
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:133
github.com/nektos/act/pkg/common.Executor.IfNot.func1
	/home/markusw/source/act/pkg/common/executor.go:164
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/runner.(*StepContext).runUsesContainer.func1
	/home/markusw/source/act/pkg/runner/step_context.go:328
github.com/nektos/act/pkg/runner.(*RunContext).newStepExecutor.func1
	/home/markusw/source/act/pkg/runner/run_context.go:339
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:146
github.com/nektos/act/pkg/common.Executor.Then.func1
	/home/markusw/source/act/pkg/common/executor.go:133
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/common.Executor.If.func1
	/home/markusw/source/act/pkg/common/executor.go:154
github.com/nektos/act/pkg/common.Executor.Finally.func1
	/home/markusw/source/act/pkg/common/executor.go:180
github.com/nektos/act/pkg/runner.(*runnerImpl).NewPlanExecutor.func1
	/home/markusw/source/act/pkg/runner/runner.go:157
github.com/nektos/act/pkg/common.Executor.ChannelError.func1
	/home/markusw/source/act/pkg/common/executor.go:125
github.com/nektos/act/pkg/common.NewParallelExecutor.func1.1
	/home/markusw/source/act/pkg/common/executor.go:101
runtime.goexit
	/home/markusw/.gvm/gos/go1.16.3/src/runtime/asm_amd64.s:1371 
DEBU[0000] Loading slug from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] Loading revision from git directory '/tmp/act-test/.git' 
DEBU[0000] Found revision: e5ff86528d69197caaf191cd157a609333c52787 
DEBU[0000] HEAD points to 'e5ff86528d69197caaf191cd157a609333c52787' 
DEBU[0000] using github ref: refs/heads/docker-uses     
DEBU[0000] context steps => map[0:map[conclusion:failure outcome:failure outputs:map[]]] 
DEBU[0000] context env => map[ACT:true CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:build GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/docker-uses GITHUB_REPOSITORY:ZauberNerd/act-test GITHUB_REPOSITORY_OWNER:ZauberNerd GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:e5ff86528d69197caaf191cd157a609333c52787 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/tmp/act-test ImageOS:ubuntu20 NODE_VERSION:12.22.7 PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: YARN_VERSION:1.22.15] 
DEBU[0000] context needs => map[]                       
Error: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "-v": executable file not found in $PATH: unknown
```




Discussion / hints:
Issue is stale and will be closed in 14 days unless there is new activity
I have a suspicion I experience the same problem. 
I use Arch with the following `docker` installed:
```
$docker version
Client:
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.17.5
 Git commit:        e91ed5707e
 Built:             Mon Dec 13 22:31:40 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.5
  Git commit:       459d0dfbbb
  Built:            Mon Dec 13 22:30:43 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.5.9
  GitCommit:        1407cab509ff0d96baa4f0eb6ff9980270e6e620.m
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
```
I tried to build a `.pdf` document, and it looks to me that I fail at the same `context needs => map[]` step:
```
$act --version
act version 0.2.25
```
```yaml
name: Build and release the manual

on: [push]

jobs:
  build_latex:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@master
      - name: Compile LaTeX document
        uses: dante-ev/latex-action@latest
        with:
          root_file: main.tex
          compiler: pdflatex
          args: -interaction=nonstopmode -shell-escape
```
Issue is stale and will be closed in 14 days unless there is new activity
Still an issue
Is there a workaround for this?

**Edit:** I got past this by installing node in the container as part of the workflow.

```yaml
    steps:
      - if: ${{ env.ACT }}
        name: Hack container for local development
        run: |
            curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
            sudo apt-get install -y nodejs
```
Still an issue. I think this would only be a matter of mounting the `--container-daemon-socket` specified Docker daemon socket to the `docker create` command per job so the jobs can use the host's Docker.

Fix patch:
diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go
index cc8335dc87e..2747c3001fa 100644
--- a/pkg/container/docker_run.go
+++ b/pkg/container/docker_run.go
@@ -327,14 +327,20 @@ func (cr *containerReference) create(capAdd []string, capDrop []string) common.E
 
 		config := &container.Config{
 			Image:      input.Image,
-			Cmd:        input.Cmd,
-			Entrypoint: input.Entrypoint,
 			WorkingDir: input.WorkingDir,
 			Env:        input.Env,
 			Tty:        isTerminal,
 			Hostname:   input.Hostname,
 		}
 
+		if len(input.Cmd) != 0 {
+			config.Cmd = input.Cmd
+		}
+
+		if len(input.Entrypoint) != 0 {
+			config.Entrypoint = input.Entrypoint
+		}
+
 		mounts := make([]mount.Mount, 0)
 		for mountSource, mountTarget := range input.Mounts {
 			mounts = append(mounts, mount.Mount{
diff --git a/pkg/runner/step_docker.go b/pkg/runner/step_docker.go
index 5625a155f1b..3a274d0fc8f 100644
--- a/pkg/runner/step_docker.go
+++ b/pkg/runner/step_docker.go
@@ -58,7 +58,12 @@ func (sd *stepDocker) runUsesContainer() common.Executor {
 		if err != nil {
 			return err
 		}
-		entrypoint := strings.Fields(eval.Interpolate(step.With["entrypoint"]))
+
+		var entrypoint []string
+		if entry := eval.Interpolate(step.With["entrypoint"]); entry != "" {
+			entrypoint = []string{entry}
+		}
+
 		stepContainer := sd.newStepContainer(ctx, image, cmd, entrypoint)
 
 		return common.NewPipelineExecutor(


Test patch:
diff --git a/pkg/runner/testdata/uses-docker-url/push.yml b/pkg/runner/testdata/uses-docker-url/push.yml
index 2eee36f5662..336134c59ba 100644
--- a/pkg/runner/testdata/uses-docker-url/push.yml
+++ b/pkg/runner/testdata/uses-docker-url/push.yml
@@ -9,3 +9,15 @@ jobs:
         with:
           somekey: somevalue
           args: echo ${INPUT_SOMEKEY} | grep somevalue
+      - uses: docker://node:16-buster-slim
+        with:
+          args: -v
+      - uses: docker://node:16-buster-slim
+        with:
+          entrypoint: /bin/sh
+          args: -c -- uname -a
+      - uses: docker://node:16-buster-slim
+        with:
+          entrypoint: /bin/sh
+          args: -c 'uname -a'
+