GitHub Action to set up (download and install) Docker CE
Find a file
dependabot[bot] addf8fa212
build(deps): bump @docker/actions-toolkit from 0.12.0 to 0.13.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-13 12:10:51 +00:00
.github ci: disable colima workaround 2023-10-12 16:28:10 +02:00
.yarn chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
__tests__ daemon-config input 2023-08-27 14:49:24 +02:00
dist chore: update generated content 2023-09-13 10:16:57 +02:00
src daemon-config input 2023-08-27 14:49:24 +02:00
test ci: test build Dockerfile 2023-03-10 10:54:14 +01:00
.dockerignore chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
.editorconfig initial implementation 2023-03-02 14:23:05 +01:00
.eslintignore chore: update dev dependencies 2023-09-10 05:19:31 +02:00
.eslintrc.json chore: update dev dependencies 2023-09-10 05:19:31 +02:00
.gitattributes chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
.gitignore chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
.prettierignore chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
.prettierrc.json initial implementation 2023-03-02 14:23:05 +01:00
.yarnrc.yml chore: update yarn to 3.6.3 2023-09-10 05:01:37 +02:00
action.yml chore: node 20 as default runtime 2023-09-10 05:21:16 +02:00
codecov.yml codecov: update config 2023-09-09 11:50:16 +02:00
dev.Dockerfile chore: update dev dependencies 2023-09-10 05:19:31 +02:00
docker-bake.hcl dockerfile workflow 2023-03-02 14:23:20 +01:00
jest.config.ts chore: update dev dependencies 2023-09-10 05:19:31 +02:00
LICENSE license 2023-03-02 14:19:16 +01:00
package.json build(deps): bump @docker/actions-toolkit from 0.12.0 to 0.13.0 2023-10-13 12:10:51 +00:00
README.md ci: disable colima workaround 2023-10-12 16:28:10 +02:00
TROUBLESHOOTING.md ci: disable colima workaround 2023-10-12 16:28:10 +02:00
tsconfig.json chore: update dev dependencies 2023-09-10 05:19:31 +02:00
yarn.lock build(deps): bump @docker/actions-toolkit from 0.12.0 to 0.13.0 2023-10-13 12:10:51 +00:00

GitHub release GitHub marketplace CI workflow Test workflow Codecov

About

GitHub Action to set up (download and install) Docker CE. Works on Linux, macOS and Windows.

Screenshot


Usage

Quick start

name: ci

on:
  push:

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up Docker
        uses: crazy-max/ghaction-setup-docker@v2

Daemon configuration

You can configure the Docker daemon using the daemon-config input. In the following example, we configure the Docker daemon to enable debug and the containerd image store feature:

name: ci

on:
  push:

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up Docker
        uses: crazy-max/ghaction-setup-docker@v2
        with:
          daemon-config: |
            {
              "debug": true,
              "features": {
                "containerd-snapshotter": true
              }
            }            

Define custom colima start arguments (macOS)

You can define custom colima start arguments using the COLIMA_START_ARGS environment variable to customize the VM:

name: ci

on:
  push:

jobs:
  docker:
    runs-on: macos-latest
    steps:
      -
        name: Set up Docker
        uses: crazy-max/ghaction-setup-docker@v2
        env:
          COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32

Customizing

inputs

Following inputs can be used as step.with keys

Name Type Default Description
version String latest Docker CE version (e.g., v24.0.6).
channel String stable Docker CE channel (e.g, stable, edge or test).
daemon-config String Docker daemon JSON configuration
context String setup-docker-action Docker context name.

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! 🙏

License

Apache-2.0. See LICENSE for more details.