Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

setup-docker

1.0.2

setup-docker

box

setup-docker

Set up your GitHub Actions workflow with a specific version of Docker

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-docker

uses: docker-practice/[email protected]

Learn more about this action in docker-practice/actions-setup-docker

Choose a version

setup-docker

Support Linux and macOS

Example please see

Test with Docker 20.03 (Linux only)

Thanks https://github.com/AkihiroSuda/moby-snapshot

on:
  push

name: ci

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
    - uses: docker-practice/actions-setup-docker@master
      with:
        docker_channel: nightly
        # this value please see https://github.com/AkihiroSuda/moby-snapshot/releases
        docker_nightly_version: snapshot-20200915
    - run: |
        set -x

        docker version

        docker run --rm hello-world