Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Use Docker Containers for GitHub Actions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

  1. Docker container is available in Ubuntu and Windows but not macOS in GitHub Actions due to license issues. To use Docker in macOS in GitHub Actions, you have to install it manually. Please refer to Is it possible to install and configure Docker on MacOS runner? for more details.

  2. The runner account (even with sudo) in GitHub Actions VMs have restricted priviledges. For example, the Linux perf (and equivalent) tools cannot be run in GitHub Actions VMs even if sudo is used. Docker containers running in GitHub Actions VMs are restricted too. For more details, please refer to Supported Linux capabilities .

Examples