[GH-ISSUE #440] Add warning when Docker installation not found #306

Closed
opened 2026-03-01 21:42:13 +03:00 by kerem · 3 comments
Owner

Originally created by @nelsonni on GitHub (Dec 9, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/440

Version: v0.2.17
Platform: MacOS
Command: act -n
main.workflow file:

name: Manually triggered workflow
on:
  workflow_dispatch:
    inputs:
      name:
        description: 'Person to greet'
        required: true
        default: 'Mona the Octocat'
      home:
        description: 'location'
        required: false
        default: 'The Octoverse'

jobs:
  say_hello:
    runs-on: ubuntu-latest
    steps:
    - run: |
        echo "Hello ${{ github.event.inputs.name }}!"
        echo "- in ${{ github.event.inputs.home }}!"

Output:

(blank)

Expected Output:
A warning indicating that Docker needs to be installed.

If Docker is installed, but the Docker Daemon isn't running, then there is the following warning:

Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Can this type of check and warning be replicated when Docker is missing?

Originally created by @nelsonni on GitHub (Dec 9, 2020). Original GitHub issue: https://github.com/nektos/act/issues/440 **Version**: [v0.2.17](https://github.com/nektos/act/releases/tag/v0.2.17) **Platform**: MacOS **Command**: `act -n` **`main.workflow` file**: ```yml name: Manually triggered workflow on: workflow_dispatch: inputs: name: description: 'Person to greet' required: true default: 'Mona the Octocat' home: description: 'location' required: false default: 'The Octoverse' jobs: say_hello: runs-on: ubuntu-latest steps: - run: | echo "Hello ${{ github.event.inputs.name }}!" echo "- in ${{ github.event.inputs.home }}!" ``` **Output**: ```console (blank) ``` **Expected Output**: A warning indicating that Docker needs to be installed. If Docker is installed, but the Docker Daemon isn't running, then there is the following warning: ```console Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ``` Can this type of check and warning be replicated when Docker is missing?
kerem 2026-03-01 21:42:13 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@nelsonni commented on GitHub (Dec 9, 2020):

This is a partial continuation of the request for further documentation to indicate that Docker is a prerequisite for using act:

Make sure docker is running 😉

I think the documentation could have a requirements, as it states that it uses the Docker API, but it does not specify that you need an installation of Docker.

Originally posted by @GustavoFenilli in https://github.com/nektos/act/issues/176#issuecomment-640276396

<!-- gh-comment-id:741287116 --> @nelsonni commented on GitHub (Dec 9, 2020): This is a partial continuation of the request for further documentation to indicate that Docker is a prerequisite for using `act`: >> Make sure docker is running 😉 > > I think the documentation could have a requirements, as it states that it uses the Docker API, but it does not specify that you need an installation of Docker. _Originally posted by @GustavoFenilli in https://github.com/nektos/act/issues/176#issuecomment-640276396_
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

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

<!-- gh-comment-id:761279524 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@nelsonni commented on GitHub (Jan 16, 2021):

This issue is not stale. PR #367 discusses a solution that would partially address this concern, but in case a user doesn't realize that Docker is a required dependency a runtime warning would be helpful.

<!-- gh-comment-id:761285097 --> @nelsonni commented on GitHub (Jan 16, 2021): This issue is not stale. PR #367 discusses a solution that would partially address this concern, but in case a user doesn't realize that Docker is a required dependency a runtime warning would be helpful.
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#306
No description provided.