QuestionQ3

Consume and troubleshoot workflows

As a developer, you are using a Docker container action in your workflow. What must be in place for the action to run successfully?

  • A The job env must be set to a Linux environment.
  • B The action must be published to the GitHub Marketplace.
  • C The referenced action must be hosted on Docker Hub.
  • D The job runs-on must specify a Linux machine with Docker installed.
Explanation

Docker container actions must run on a Linux runner. For self-hosted runners, Docker must be installed; therefore, the job’s runs-on configuration must target a Linux machine with Docker available. GitHub’s workflow syntax documentation states that Docker container actions require a Linux runner and that self-hosted Linux runners require Docker to be installed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!