Skip to content

Docker container actions and service containers only work on 'ubuntu-latest'? #1624

@BrightRan

Description

@BrightRan

Associated GitHub Community ticket: https://github.community/t/does-service-containers-only-work-with-ubuntu-latest/133246

We can see the following description from the docs (see here and here):

Note: If your workflows use Docker container actions or service containers, then you must use a Linux runner:

  • If you are using GitHub-hosted runners, you must use the ubuntu-latest runner.
  • If you are using self-hosted runners, you must use a Linux machine as your runner and Docker must be installed.

However, according to our test with ubuntu-20.04, ubuntu-latest (ubuntu-18.04), and ubuntu-16.04, all of them can run Docker container actions and service containers.

Looks like, the description

If you are using GitHub-hosted runners, you must use the ubuntu-latest runner.

is not accurate, and causing misunderstanding.
It should express clearly that all the GitHub-hosted Linux runners can run Docker container actions, service containers and job containers.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions