Code Monkey home page Code Monkey logo

actions-setup-docker's People

Contributors

dimosthenisk avatar khs1994 avatar mmore500 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actions-setup-docker's Issues

Node 16 runners are deprecated

Thanks for the great GitHub action!
Since a while, I get the following warning in all runs that use your action.

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: docker-practice/actions-setup-docker@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
image

Are there any plans to upgrade to Node 20 in the future?

Please remove freemium dependencies

The way this works can result in build breaks due to payment required

add apt source
  /usr/bin/sudo add-apt-repository deb [arch=amd64,arm64] https://download.docker.com/linux/ubuntu bionic stable
  Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
  Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
  Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
  Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
  Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
  Get:6 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
  Hit:7 https://storage.googleapis.com/bazel-apt stable InRelease
  Get:8 http://packages.cloud.google.com/apt cloud-sdk InRelease [6349 B]
  Hit:9 https://dl.yarnpkg.com/debian stable InRelease
  Hit:10 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease
  Ign:12 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 InRelease
  Hit:13 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 Release
  Get:14 https://cli-assets.heroku.com/apt ./ InRelease [2879 B]
  Get:15 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease [15.9 kB]
  Get:16 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04  InRelease [1613 B]
  Get:11 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [8993 B]
  Get:17 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [103 kB]
  Err:18 https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease
    402  Payment Required [IP: 54.183.38.243 443]
  Get:19 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1727 kB]
  Hit:20 http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic InRelease
  Ign:21 https://dl.bintray.com/sbt/debian  InRelease
  Get:22 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [367 kB]
  Get:23 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [184 kB]
  Get:24 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [24.6 kB]
  Get:25 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1683 kB]
  Get:26 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [354 kB]
  Get:27 https://dl.bintray.com/sbt/debian  Release [815 B]
  Get:28 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease [20.8 kB]
  Get:29 https://download.docker.com/linux/ubuntu bionic/stable arm64 Packages [12.9 kB]
  Get:30 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [13.0 kB]
  Get:31 http://ppa.launchpad.net/hvr/ghc/ubuntu bionic InRelease [15.3 kB]
  Get:32 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1089 B]
  Get:33 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
  Get:34 http://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [144 kB]
  Hit:35 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
  Get:36 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1400 kB]
  Get:37 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [277 kB]
  Get:38 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [166 kB]
  Get:39 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [22.1 kB]
  Get:40 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1079 kB]
  Get:41 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [241 kB]
  Get:43 https://cli-assets.heroku.com/apt ./ Packages [620 B]
  Get:44 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04  Packages [6389 B]
  Get:45 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 Packages [820 B]
  Get:47 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [229 kB]
  Get:48 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 Packages [3048 B]
  Get:49 http://ppa.launchpad.net/hvr/ghc/ubuntu bionic/main amd64 Packages [11.6 kB]
  Get:50 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [80.3 kB]
  Reading package lists...
  E: Failed to fetch https://packagecloud.io/github/git-lfs/ubuntu/dists/bionic/InRelease  402  Payment Required [IP: 54.183.38.243 443]
  E: The repository 'https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease' is no longer signed.
  Error: Error: The process '/usr/bin/sudo' failed with exit code 100

Docker run is failing with exit code 1

I am trying to test the GitHub actions in my local machine using act with the docker setup.

My workflow file is,

name: Run Docker in Ubuntu
on: [push, pull_request]
jobs:
  sanity-check:
    runs-on: ubuntu-latest
    steps:
      - name: Run Docker
        uses: docker-practice/actions-setup-docker@master

For this, I am getting the following error,

| [command]/usr/bin/sudo systemctl status docker
| System has not been booted with systemd as init system (PID 1). Can't operate.
| Failed to connect to bus: Host is down
[Sanity Check/sanity-check] ❗ ::error::Error: The process '/usr/bin/sudo' failed with exit code 1
[Sanity Check/sanity-check] ❌ Failure - Run Docker

Anyone else faced a similar problem or do we have any workaround to avoid this problem?

Error: Error: The process '/usr/bin/sudo' failed with exit code 100

add apt source
  /usr/bin/sudo add-apt-repository deb [arch=amd64,arm64] https://download.docker.com/linux/ubuntu bionic stable
  Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
  Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
  Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
  Get:4 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [104 kB]
  Get:5 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease [5143 B]
  Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
  Get:7 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
  Get:8 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
  Hit:10 https://storage.googleapis.com/bazel-apt stable InRelease
  Hit:11 https://dl.yarnpkg.com/debian stable InRelease
  Get:12 http://packages.cloud.google.com/apt cloud-sdk InRelease [6739 B]
  Ign:14 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 InRelease
  Get:13 https://cli-assets.heroku.com/apt ./ InRelease [2879 B]
  Get:15 https://packages.microsoft.com/repos/azure-cli bionic InRelease [3964 B]
  Get:17 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease [15.9 kB]
  Get:18 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04  InRelease [1613 B]
  Get:19 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [4003 B]
  Get:20 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1790 kB]
  Ign:21 https://dl.bintray.com/sbt/debian  InRelease
  Get:22 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 Release [5374 B]
  Get:23 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [376 kB]
  Get:24 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [206 kB]
  Get:25 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [27.9 kB]
  Get:26 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1697 kB]
  Get:27 https://dl.bintray.com/sbt/debian  Release [815 B]
  Get:28 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [357 kB]
  Get:9 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [9383 B]
  Get:29 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [35.6 kB]
  Get:30 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [7180 B]
  Get:31 https://dl.bintray.com/sbt/debian  Release.gpg [821 B]
  Get:32 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 Release.gpg [801 B]
  Get:33 https://download.mono-project.com/repo/ubuntu stable-bionic/main amd64 Packages [49.1 kB]
  Hit:34 http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic InRelease
  Get:35 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [231 kB]
  Get:36 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1091 B]
  Hit:37 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease
  Get:16 https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease [23.2 kB]
  Get:38 https://download.docker.com/linux/ubuntu bionic/stable arm64 Packages [14.8 kB]
  Get:39 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [14.9 kB]
  Hit:40 http://ppa.launchpad.net/hvr/ghc/ubuntu bionic InRelease
  Get:41 http://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [149 kB]
  Get:42 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1453 kB]
  Get:43 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
  Get:44 https://cli-assets.heroku.com/apt ./ Packages [616 B]
  Get:45 https://packages.microsoft.com/repos/azure-cli bionic/main amd64 Packages [12.0 kB]
  Get:46 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [284 kB]
  Get:47 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [185 kB]
  Get:48 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [24.3 kB]
  Get:49 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1094 kB]
  Get:50 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [244 kB]
  Get:51 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [12.8 kB]
  Get:52 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2872 B]
  Hit:53 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
  Get:54 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04  Packages [6141 B]
  Get:55 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [150 kB]
  Err:55 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
    File has unexpected size (150212 != 149976). Mirror sync in progress? [IP: 13.66.3.153 443]
    Hashes of expected file:
     - Filesize:149976 [weak]
     - SHA512:6589af07601ee5eb0ad94d41b50a8208a85d6990d63d4b6c357a4d918e09d6795484c75a857d00f0574788a65878c92c07fb579ddc600a315889826f7c18ee6e
     - SHA256:e1b4b108b7b147b9f869c1a2d21a012699249ddab383210e7808e2aeacd769be
     - SHA1:ff3e59a095486c66d25c3f8cd51f1b65c76638b4 [weak]
     - MD5Sum:b4d89021288868fc49a2bdf3a8c57ad3 [weak]
    Release file created at: Tue, 15 Dec 2020 23:10:49 +0000
  Get:56 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 Packages [828 B]
  Get:57 https://dl.bintray.com/sbt/debian  Packages [4725 B]
  Get:58 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages [42.5 kB]
  Get:59 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4/multiverse amd64 Packages [7035 B]
  Get:61 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [81.2 kB]
  Get:60 https://packagecloud.io/github/git-lfs/ubuntu bionic/main amd64 Packages [4084 B]
  Get:62 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main Translation-en [31.6 kB]
  Fetched 8971 kB in 3s (2776 kB/s)
  Reading package lists...
  E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (150212 != 149976). Mirror sync in progress? [IP: 13.66.3.153 443]
     Hashes of expected file:
      - Filesize:149976 [weak]
      - SHA512:6589af07601ee5eb0ad94d41b50a8208a85d6990d63d4b6c357a4d918e09d6795484c75a857d00f0574788a65878c92c07fb579ddc600a315889826f7c18ee6e
      - SHA256:e1b4b108b7b147b9f869c1a2d21a012699249ddab383210e7808e2aeacd769be
      - SHA1:ff3e59a095486c66d25c3f8cd51f1b65c76638b4 [weak]
      - MD5Sum:b4d89021288868fc49a2bdf3a8c57ad3 [weak]
     Release file created at: Tue, 15 Dec 2020 23:10:49 +0000
  E: Some index files failed to download. They have been ignored, or old ones used instead.
  Error: Error: The process '/usr/bin/sudo' failed with exit code 100

2023-02-01 Failed on macos-latest

Found issue from https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177.
This workflow runs on macos-latest with logs

Run docker-practice/actions-setup-docker@master
install docker
  /usr/local/bin/wget https://raw.githubusercontent.com/Homebrew/homebrew-cask/fe866ec0765de14[15](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:16)99745f03e215452db7f511b/Casks/docker.rb
  --2023-01-31 09:11:48--  https://raw.githubusercontent.com/Homebrew/homebrew-cask/fe866ec0765de141599745f03e215452db7f511b/Casks/docker.rb
  Resolving raw.githubusercontent.com (raw.githubusercontent.com)... [18](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:19)5.[19](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:20)9.109.133, 185.199.111.133, 185.199.108.133, ...
  Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
  HTTP request sent, awaiting response... [20](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:21)0 OK
  Length: 4466 (4.4K) [text/plain]
  Saving to: ‘docker.rb’
  
       0K ....                                                  100% 14.8M=0s
  
  20[23](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:24)-01-31 09:11:48 (14.8 MB/s) - ‘docker.rb’ saved [4466/4466]
  
  /usr/local/bin/brew install --cask docker.rb
  ==> Downloading https://desktop.docker.com/mac/main/amd64/8[24](https://github.com/davidkhala/ci-cd-utils/actions/runs/4052481071/jobs/6971959177#step:3:25)75/Docker.dmg
  Error: Download failed on Cask 'docker' with message: Operation not supported @ dir_s_mkdir - /home/runner
  Error: Error: The process '/usr/local/bin/brew' failed with exit code 1

Any plans to support darwin/macOS arm64?

When running a GitHub action such as:

jobs:
  my-job:
    runs-on: macos-latest
    :
      - name: install Docker
        uses: docker-practice/actions-setup-docker@master
        timeout-minutes: 12
    :

Although the return is a "success", the following is shown in the log:

Warning: only support macOS x86_64, os arch is arm64

and docker is not installed.

Are there any plans to support darwin/macOS arm64?

brew cask install docker no longer works on macOS

Hi, the docker setup action is erroring out with this error on macos-latest:

Run docker-practice/actions-setup-docker@v1
install docker
  /usr/local/bin/brew cask install docker
  Error: Calling brew cask install is disabled! Use brew install [--cask] instead.
  Error: Error: The process '/usr/local/bin/brew' failed with exit code 1

I guess that this exec step might be the issue?

Got problems with macos latest

This is my CI.yml

name: Swift

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: macos-latest
    steps:
      - uses: docker-practice/actions-setup-docker@master
      - name: testtt
        run: |
          docker-compose up -d

But it hangs forever in the logging (raw logs from github actions):

2021-08-04T18:29:26.7978110Z signal
2021-08-04T18:29:26.7978720Z snipaste
2021-08-04T18:29:26.7979330Z spyder
2021-08-04T18:29:26.7979880Z start
2021-08-04T18:29:26.7980450Z stats
2021-08-04T18:29:26.7981500Z streamlabs-obs
2021-08-04T18:29:26.7982260Z teamviewer
2021-08-04T18:29:26.7982920Z telegram
2021-08-04T18:29:26.7983490Z upwork
2021-08-04T18:29:26.7984080Z vial
2021-08-04T18:29:26.7984610Z wavebox
2021-08-04T18:29:26.7985260Z yinxiangbiji
2021-08-04T18:29:26.7985840Z zulu
2021-08-04T18:29:26.7986410Z zulufx
2021-08-04T18:29:30.4639970Z 
2021-08-04T18:29:30.4644860Z You have �[1m3�[0m outdated formulae installed.
2021-08-04T18:29:30.4648120Z You can upgrade them with �[1mbrew upgrade�[0m
2021-08-04T18:29:30.4651710Z or list them with �[1mbrew outdated�[0m.
2021-08-04T18:29:30.8537720Z [command]/usr/local/bin/brew install --cask docker
2021-08-04T18:29:33.0892760Z �[34m==>�[0m �[1mDownloading https://desktop.docker.com/mac/stable/amd64/66501/Docker.dmg�[0m
2021-08-04T18:30:10.4955710Z �[32m==>�[0m �[1mInstalling Cask �[32mdocker�[39m�[0m
2021-08-04T18:30:10.4957570Z �[33mWarning:�[0m macOS's Gatekeeper has been disabled for this Cask

Any idea why it doesn't work?

It does not working sometimes V2

I got another different error. I killed the process myself because it was running for 40 minutes without any luck.

2022-09-21T08:41:00.8924440Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:01.1322920Z + ((  i++ == 0  ))
2022-09-21T08:41:01.1323810Z + printf .
2022-09-21T08:41:01.1330530Z + command -v docker
2022-09-21T08:41:01.1333920Z + sleep 1
2022-09-21T08:41:01.1343520Z ./usr/local/bin/docker
2022-09-21T08:41:02.2126100Z + '[' 168 -gt 180 ']'
2022-09-21T08:41:02.2227920Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:02.4656060Z + ((  i++ == 0  ))
2022-09-21T08:41:02.4773040Z + printf .
2022-09-21T08:41:02.4873630Z + command -v docker
2022-09-21T08:41:02.4974650Z + sleep 1
2022-09-21T08:41:02.5075850Z ./usr/local/bin/docker
2022-09-21T08:41:03.5684470Z + '[' 169 -gt 180 ']'
2022-09-21T08:41:03.5786010Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:03.8971490Z + ((  i++ == 0  ))
2022-09-21T08:41:03.9073240Z + printf .
2022-09-21T08:41:03.9174970Z + command -v docker
2022-09-21T08:41:03.9276220Z + sleep 1
2022-09-21T08:41:03.9377550Z ./usr/local/bin/docker
2022-09-21T08:41:05.0027160Z + '[' 170 -gt 180 ']'
2022-09-21T08:41:05.0041640Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:05.2531780Z + ((  i++ == 0  ))
2022-09-21T08:41:05.2633010Z + printf .
2022-09-21T08:41:05.2734460Z + command -v docker
2022-09-21T08:41:05.2835560Z + sleep 1
2022-09-21T08:41:05.2937050Z ./usr/local/bin/docker
2022-09-21T08:41:06.4048380Z + '[' 171 -gt 180 ']'
2022-09-21T08:41:06.4078510Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:06.6649820Z + ((  i++ == 0  ))
2022-09-21T08:41:06.6751020Z + printf .
2022-09-21T08:41:06.6852330Z + command -v docker
2022-09-21T08:41:06.6952660Z ./usr/local/bin/docker
2022-09-21T08:41:06.7054710Z + sleep 1
2022-09-21T08:41:07.7146840Z + '[' 172 -gt 180 ']'
2022-09-21T08:41:07.7248220Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:07.9650830Z + ((  i++ == 0  ))
2022-09-21T08:41:07.9659380Z + printf .
2022-09-21T08:41:07.9669910Z + command -v docker
2022-09-21T08:41:07.9677450Z + sleep 1
2022-09-21T08:41:07.9678050Z ./usr/local/bin/docker
2022-09-21T08:41:09.0928870Z + '[' 173 -gt 180 ']'
2022-09-21T08:41:09.1029220Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:09.3489990Z + ((  i++ == 0  ))
2022-09-21T08:41:09.3591510Z + printf .
2022-09-21T08:41:09.3693880Z + command -v docker
2022-09-21T08:41:09.3795420Z + sleep 1
2022-09-21T08:41:09.3875360Z ./usr/local/bin/docker
2022-09-21T08:41:10.4726550Z + '[' 174 -gt 180 ']'
2022-09-21T08:41:10.4828080Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:10.7185340Z + ((  i++ == 0  ))
2022-09-21T08:41:10.7215270Z + printf .
2022-09-21T08:41:10.7242010Z + command -v docker
2022-09-21T08:41:10.7242930Z + sleep 1
2022-09-21T08:41:10.7269680Z ./usr/local/bin/docker
2022-09-21T08:41:11.8061550Z + '[' 175 -gt 180 ']'
2022-09-21T08:41:11.8163030Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:12.0585070Z + ((  i++ == 0  ))
2022-09-21T08:41:12.0685820Z + printf .
2022-09-21T08:41:12.0787370Z + command -v docker
2022-09-21T08:41:12.0787790Z ./usr/local/bin/docker
2022-09-21T08:41:12.0889010Z + sleep 1
2022-09-21T08:41:13.1966510Z + '[' 176 -gt 180 ']'
2022-09-21T08:41:13.2065900Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:13.4496810Z + ((  i++ == 0  ))
2022-09-21T08:41:13.4597370Z + printf .
2022-09-21T08:41:13.4698690Z + command -v docker
2022-09-21T08:41:13.4799070Z + sleep 1
2022-09-21T08:41:13.4900450Z ./usr/local/bin/docker
2022-09-21T08:41:14.5547210Z + '[' 177 -gt 180 ']'
2022-09-21T08:41:14.5650880Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:14.8093930Z + ((  i++ == 0  ))
2022-09-21T08:41:14.8170030Z + printf .
2022-09-21T08:41:14.8179310Z + command -v docker
2022-09-21T08:41:14.8198270Z ./usr/local/bin/docker
2022-09-21T08:41:14.8210340Z + sleep 1
2022-09-21T08:41:15.9417320Z + '[' 178 -gt 180 ']'
2022-09-21T08:41:15.9524530Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:16.2067290Z + ((  i++ == 0  ))
2022-09-21T08:41:16.2168980Z + printf .
2022-09-21T08:41:16.2270510Z + command -v docker
2022-09-21T08:41:16.2372060Z + sleep 1
2022-09-21T08:41:16.2473530Z ./usr/local/bin/docker
2022-09-21T08:41:17.2060760Z + '[' 179 -gt 180 ']'
2022-09-21T08:41:17.2143230Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:17.4497250Z + ((  i++ == 0  ))
2022-09-21T08:41:17.4529900Z + printf .
2022-09-21T08:41:17.4531400Z + command -v docker
2022-09-21T08:41:17.4547440Z + sleep 1
2022-09-21T08:41:17.4562270Z ./usr/local/bin/docker
2022-09-21T08:41:18.5796520Z + '[' 180 -gt 180 ']'
2022-09-21T08:41:18.5897920Z + /Applications/Docker.app/Contents/Resources/bin/docker system info
2022-09-21T08:41:18.8107740Z + ((  i++ == 0  ))
2022-09-21T08:41:18.8108520Z + printf .
2022-09-21T08:41:18.8112080Z + command -v docker
2022-09-21T08:41:18.8112750Z + sleep 1
2022-09-21T08:41:18.8113300Z ./usr/local/bin/docker
2022-09-21T08:41:19.9622060Z + '[' 181 -gt 180 ']'
2022-09-21T08:41:19.9725750Z + sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
2022-09-21T08:41:20.1612360Z Starting diagnostics
2022-09-21T08:41:20.1613020Z 
2022-09-21T08:41:20.1613760Z [PASS] DD0027: is there available disk space on the host?
2022-09-21T08:41:20.1614480Z [SKIP] DD0028: is there available VM disk space?
2022-09-21T08:41:20.1660910Z [FAIL] DD0031: does the Docker API work? Cannot connect to the Docker daemon at unix://docker.raw.sock. Is the docker daemon running?
2022-09-21T08:41:27.1976080Z [FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.2077110Z [2022-09-21T08:41:20.166920000Z][com.docker.diagnose][I] ipc.NewClient: c7846262-com.docker.diagnose -> lifecycle-server.sock VMDockerdAPI
2022-09-21T08:41:27.2179240Z [linuxkit/pkg/desktop-host-tools/pkg/client.NewClientForPath(...)
2022-09-21T08:41:27.2279930Z [	linuxkit/pkg/desktop-host-tools/pkg/client/client.go:59
2022-09-21T08:41:27.2381370Z [linuxkit/pkg/desktop-host-tools/pkg/client.NewClient({0x47bb024, 0x13})
2022-09-21T08:41:27.2488660Z [	linuxkit/pkg/desktop-host-tools/pkg/client/client.go:53 +0x99
2022-09-21T08:41:27.2583690Z [common/pkg/diagkit/gather/diagnose.isDockerEngineRunning()
2022-09-21T08:41:27.2689840Z [	common/pkg/diagkit/gather/diagnose/dockerd.go:21 +0x29
2022-09-21T08:41:27.2791990Z [common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x4d440a0)
2022-09-21T08:41:27.2893880Z [	common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
2022-09-21T08:41:27.2995420Z [common/pkg/diagkit/gather/diagnose.Run.func1(0x4d440a0)
2022-09-21T08:41:27.3095920Z [	common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
2022-09-21T08:41:27.3197600Z [common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x4607717?, 0x4d440a0)
2022-09-21T08:41:27.3298470Z [	common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
2022-09-21T08:41:27.3400090Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x4d440a0, 0xc000595728)
2022-09-21T08:41:27.3501620Z [	common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
2022-09-21T08:41:27.3602360Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x4d441a0?, 0xc000595728)
2022-09-21T08:41:27.3704200Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:27.3848590Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x15?, 0xc000595728)
2022-09-21T08:41:27.3950190Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:27.4051320Z [common/pkg/diagkit/gather/diagnose.walkOnce(0x46f5c60?, 0xc000595888)
2022-09-21T08:41:27.4087590Z [	common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
2022-09-21T08:41:27.4189050Z [common/pkg/diagkit/gather/diagnose.Run(0x4d44420, 0x0?, {0xc000595b18, 0x1, 0x1})
2022-09-21T08:41:27.4290470Z [	common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
2022-09-21T08:41:27.4393470Z [main.checkCmd({0xc0001b0010?, 0x6?, 0x4?}, {0x0, 0x0})
2022-09-21T08:41:27.4494920Z [	common/cmd/com.docker.diagnose/main.go:133 +0x105
2022-09-21T08:41:27.4596300Z [main.main()
2022-09-21T08:41:27.4697670Z [	common/cmd/com.docker.diagnose/main.go:99 +0x2a8
2022-09-21T08:41:27.4867360Z [2022-09-21T08:41:20.173711000Z][com.docker.diagnose][I] (c374c2e6) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /docker
2022-09-21T08:41:27.4974670Z [2022-09-21T08:41:20.174604000Z][com.docker.diagnose][W] (c374c2e6) c7846262-com.docker.diagnose C<-S NoResponse GET /docker (871.769µs): Get "http://ipc/docker": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.4975650Z [2022-09-21T08:41:20.175327000Z][com.docker.diagnose][I] (c374c2e6-1) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.4976520Z [2022-09-21T08:41:20.175871000Z][com.docker.diagnose][W] (c374c2e6-1) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (539.741µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.4977310Z [2022-09-21T08:41:21.177805000Z][com.docker.diagnose][I] (c374c2e6-2) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.4978200Z [2022-09-21T08:41:21.178540000Z][com.docker.diagnose][W] (c374c2e6-2) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (728.253µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.4978990Z [2022-09-21T08:41:22.180468000Z][com.docker.diagnose][I] (c374c2e6-3) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.4981420Z [2022-09-21T08:41:22.181229000Z][com.docker.diagnose][W] (c374c2e6-3) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (756.614µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5037330Z [2022-09-21T08:41:23.182908000Z][com.docker.diagnose][I] (c374c2e6-4) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.5095470Z [2022-09-21T08:41:23.183770000Z][com.docker.diagnose][W] (c374c2e6-4) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (855.901µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5171840Z [2022-09-21T08:41:24.184814000Z][com.docker.diagnose][I] (c374c2e6-5) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.5274450Z [2022-09-21T08:41:24.185736000Z][com.docker.diagnose][W] (c374c2e6-5) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (911.239µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5376630Z [2022-09-21T08:41:25.186695000Z][com.docker.diagnose][I] (c374c2e6-6) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.5377590Z [2022-09-21T08:41:25.188587000Z][com.docker.diagnose][W] (c374c2e6-6) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (1.88741ms): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5378530Z [2022-09-21T08:41:26.189414000Z][com.docker.diagnose][I] (c374c2e6-7) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.5480780Z [2022-09-21T08:41:26.190145000Z][com.docker.diagnose][W] (c374c2e6-7) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (726.604µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5583430Z [2022-09-21T08:41:27.191709000Z][com.docker.diagnose][I] (c374c2e6-8) c7846262-com.docker.diagnose C->S VMDockerdAPI GET /ping
2022-09-21T08:41:27.5685810Z [2022-09-21T08:41:27.192432000Z][com.docker.diagnose][W] (c374c2e6-8) c7846262-com.docker.diagnose C<-S NoResponse GET /ping (717.041µs): Get "http://ipc/ping": dial unix lifecycle-server.sock: connect: no such file or directory
2022-09-21T08:41:27.5786960Z 
2022-09-21T08:41:27.5888240Z [FAIL] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": dial unix diagnosticd.sock: connect: no such file or directory
2022-09-21T08:41:27.5990250Z [2022-09-21T08:41:27.193533000Z][com.docker.diagnose][I] ipc.NewClient: a92a8948-diagnose -> diagnosticd.sock diagnosticsd
2022-09-21T08:41:27.6096520Z [common/pkg/diagkit/gather/diagnose.glob..func12()
2022-09-21T08:41:27.6198060Z [	common/pkg/diagkit/gather/diagnose/linuxkit.go:18 +0x8c
2022-09-21T08:41:27.6300200Z [common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x4d44020)
2022-09-21T08:41:27.6401710Z [	common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
2022-09-21T08:41:27.6503690Z [common/pkg/diagkit/gather/diagnose.Run.func1(0x4d44020)
2022-09-21T08:41:27.6605080Z [	common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
2022-09-21T08:41:27.6706560Z [common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x4607717?, 0x4d44020)
2022-09-21T08:41:27.6808160Z [	common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
2022-09-21T08:41:27.6909580Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x3, 0x4d44020, 0xc000595728)
2022-09-21T08:41:27.7012370Z [	common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
2022-09-21T08:41:27.7113920Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x4d440a0?, 0xc000595728)
2022-09-21T08:41:27.7215920Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:27.7317740Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x4d441a0?, 0xc000595728)
2022-09-21T08:41:27.7431010Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:27.7532940Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x15?, 0xc000595728)
2022-09-21T08:41:27.7635790Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:27.7737710Z [common/pkg/diagkit/gather/diagnose.walkOnce(0x46f5c60?, 0xc000595888)
2022-09-21T08:41:27.7840990Z [	common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
2022-09-21T08:41:27.7942550Z [common/pkg/diagkit/gather/diagnose.Run(0x4d44420, 0x0?, {0xc000595b18, 0x1, 0x1})
2022-09-21T08:41:27.8044940Z [	common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
2022-09-21T08:41:27.8146420Z [main.checkCmd({0xc0001b0010?, 0x6?, 0x4?}, {0x0, 0x0})
2022-09-21T08:41:27.8247860Z [	common/cmd/com.docker.diagnose/main.go:133 +0x105
2022-09-21T08:41:27.8349360Z [main.main()
2022-09-21T08:41:27.8452410Z [	common/cmd/com.docker.diagnose/main.go:99 +0x2a8
2022-09-21T08:41:27.8554420Z [2022-09-21T08:41:27.199680000Z][com.docker.diagnose][I] (e8a404df) a92a8948-diagnose C->S diagnosticsd GET /ping
2022-09-21T08:41:27.8656660Z [2022-09-21T08:41:27.200333000Z][com.docker.diagnose][W] (e8a404df) a92a8948-diagnose C<-S NoResponse GET /ping (618.925µs): Get "http://ipc/ping": dial unix diagnosticd.sock: connect: no such file or directory
2022-09-21T08:41:27.8757910Z 
2022-09-21T08:41:27.8859640Z [FAIL] DD0016: is the LinuxKit VM running? vm is not running: failed to open kmsg.log: open /var/root/Library/Containers/com.docker.docker/Data/log/vm/kmsg.log: no such file or directory
2022-09-21T08:41:30.5733370Z [PASS] DD0001: is the application running?
2022-09-21T08:41:30.5834020Z [PASS] DD0018: does the host support virtualization?
2022-09-21T08:41:30.5935540Z [FAIL] DD0017: can a VM be started? vm has not started: failed to open kmsg.log: open /var/root/Library/Containers/com.docker.docker/Data/log/vm/kmsg.log: no such file or directory
2022-09-21T08:41:30.6036110Z [PASS] DD0015: are the binary symlinks installed?
2022-09-21T08:41:30.6816440Z Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory
2022-09-21T08:41:30.6916830Z [FAIL] DD0003: is the Docker CLI working? exit status 1
2022-09-21T08:41:30.7018240Z [PASS] DD0013: is the $PATH ok?
2022-09-21T08:41:37.7142720Z [FAIL] DD0007: is the backend responding? failed to ping com.docker.backend with error: Get "http://ipc/ping": dial unix backend.sock: connect: no such file or directory
2022-09-21T08:41:37.7244860Z [2022-09-21T08:41:30.687744000Z][com.docker.diagnose][I] ipc.NewClient: 27572a88-diagnose -> backend.sock BackendAPI
2022-09-21T08:41:37.7346430Z [common/pkg/backend.NewClientForPath({0x47b2243?, 0x0?}, {0xc00062f810?, 0x48b6c28?})
2022-09-21T08:41:37.7448280Z [	common/pkg/backend/client.go:166 +0x3d
2022-09-21T08:41:37.7551040Z [common/pkg/backend.NewClient({0x47b2243, 0x8})
2022-09-21T08:41:37.7578400Z [	common/pkg/backend/client.go:161 +0x50
2022-09-21T08:41:37.7695410Z [common/pkg/diagkit/gather/diagnose.glob..func8()
2022-09-21T08:41:37.7797220Z [	common/pkg/diagkit/gather/diagnose/ipc.go:25 +0x25
2022-09-21T08:41:37.7898630Z [common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x4d444a0)
2022-09-21T08:41:37.8000070Z [	common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
2022-09-21T08:41:37.8101710Z [common/pkg/diagkit/gather/diagnose.Run.func1(0x4d444a0)
2022-09-21T08:41:37.8205900Z [	common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
2022-09-21T08:41:37.8305120Z [common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x2?, 0x4d444a0)
2022-09-21T08:41:37.8406450Z [	common/pkg/diagkit/gather/diagnose/run.go:140 +0x77
2022-09-21T08:41:37.8507860Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x4d444a0, 0xc000539728)
2022-09-21T08:41:37.8609350Z [	common/pkg/diagkit/gather/diagnose/run.go:146 +0x36
2022-09-21T08:41:37.8712700Z [common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x15?, 0xc000539728)
2022-09-21T08:41:37.8816860Z [	common/pkg/diagkit/gather/diagnose/run.go:149 +0x73
2022-09-21T08:41:37.8918330Z [common/pkg/diagkit/gather/diagnose.walkOnce(0x46f5c60?, 0xc000595888)
2022-09-21T08:41:37.9003440Z [	common/pkg/diagkit/gather/diagnose/run.go:135 +0xcc
2022-09-21T08:41:37.9105020Z [common/pkg/diagkit/gather/diagnose.Run(0x4d44420, 0x0?, {0xc000595b18, 0x1, 0x1})
2022-09-21T08:41:37.9197480Z [	common/pkg/diagkit/gather/diagnose/run.go:16 +0x1cb
2022-09-21T08:41:37.9298860Z [main.checkCmd({0xc0001b0010?, 0x6?, 0x4?}, {0x0, 0x0})
2022-09-21T08:41:37.9400410Z [	common/cmd/com.docker.diagnose/main.go:133 +0x105
2022-09-21T08:41:37.9501780Z [main.main()
2022-09-21T08:41:37.9603040Z [	common/cmd/com.docker.diagnose/main.go:99 +0x2a8
2022-09-21T08:41:37.9704080Z 
2022-09-21T08:41:40.3539950Z [FAIL] DD0014: are the backend processes running? reading settings.json: open /var/root/Library/Group Containers/group.com.docker/settings.json: no such file or directory
2022-09-21T09:10:48.7038670Z ##[error]The operation was canceled.

Add cache support or add example

Caching should reduce failures.

I think third party actions supports caching.

In any case this implements caching at MacOS for the docker dmg.

      - name: 'SETUP MacOS: load Homebrew cache'
        uses: actions/cache@v3
        if: runner.os == 'macOS'
        with:
           path: |
             ~/Library/Caches/Homebrew/downloads/*--Docker.dmg
           key: brew-actions-setup-docker-1.0.11
           restore-keys: brew-actions-setup-docker-

I don't know where docker.rb is cached, but since it's stored at GitHub should not make too much difference.

Action not running on MacOS

I have tried with 1.0.8, 1.0.10, and v1 all seems to be failing consistently for MacOS-latest and MacOS-10.15.

Please see here -dapr/cli#981

I can see the latest CI runs for this repo also not stable.
Could you please suggest any insight or workaround for this?

The action is broken

Currently the actions fails in the pipelines with error message:

setup qemu
  /usr/bin/docker run --rm --privileged ghcr.io/dpsigs/tonistiigi-binfmt:latest --install all
  Unable to find image 'ghcr.io/dpsigs/tonistiigi-binfmt:latest' locally
  latest: Pulling from dpsigs/tonistiigi-binfmt
  2b4d0e08bd75: Pulling fs layer
  c331be51c382: Pulling fs layer
  docker: error pulling image configuration: download failed after attempts=1: unauthorized: unauthenticated: User cannot be authenticated with the token provided.
  See 'docker run --help'.
Error: Error: The process '/usr/bin/docker' failed with exit code 125

Seems that the image ghcr.io/dpsigs/tonistiigi-binfmt:latest is problematic. When I try to pull the image locally, I also get the same message

Trying to pull ghcr.io/dpsigs/tonistiigi-binfmt:latest...
Error: parsing image configuration: unable to retrieve auth token: invalid username/password: unauthorized: unauthenticated: User cannot be authenticated with the token provided.

Use node 16 runner

Hello, possible to use the node 16 runner ?
There is deprecations about node 12 in github actions.

actions-setup-docker FAILS on ubuntu latest due

Get:43 https://dl.bintray.com/sbt/debian Packages [4303 B]
Get:44 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 Packages [3032 B]
Get:45 http://ppa.launchpad.net/hvr/ghc/ubuntu bionic/main amd64 Packages [10.7 kB]
Reading package lists...
E: Failed to fetch http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/InRelease 403 Forbidden [IP: 195.135.221.134 80]
E: The repository 'http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04 InRelease' is no longer signed.
##[error]Error: The process '/usr/bin/sudo' failed with exit code 100

It does not work sometimes

I sometimes get this error:

2022-09-21T08:29:55.9163020Z ##[group]install docker
2022-09-21T08:29:55.9264530Z [command]/usr/local/bin/wget https://raw.githubusercontent.com/Homebrew/homebrew-cask/fe866ec0765de141599745f03e215452db7f511b/Casks/docker.rb
2022-09-21T08:29:55.9968810Z --2022-09-21 08:29:55--  https://raw.githubusercontent.com/Homebrew/homebrew-cask/fe866ec0765de141599745f03e215452db7f511b/Casks/docker.rb
2022-09-21T08:29:56.0269100Z Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
2022-09-21T08:29:56.0369610Z Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
2022-09-21T08:29:56.1038360Z HTTP request sent, awaiting response... 200 OK
2022-09-21T08:29:56.1138770Z Length: 4466 (4.4K) [text/plain]
2022-09-21T08:29:56.1241750Z Saving to: ‘docker.rb’
2022-09-21T08:29:56.1339730Z 
2022-09-21T08:29:56.1427610Z      0K ....                                                  100% 21.3M=0s
2022-09-21T08:29:56.1528490Z 
2022-09-21T08:29:56.1630840Z 2022-09-21 08:29:56 (21.3 MB/s) - ‘docker.rb’ saved [4466/4466]
2022-09-21T08:29:56.1747890Z 
2022-09-21T08:29:56.1850090Z [command]/usr/local/bin/brew install --cask docker.rb
2022-09-21T08:30:25.3771350Z �[34m==>�[0m �[1mDownloading https://desktop.docker.com/mac/main/amd64/82475/Docker.dmg�[0m
2022-09-21T08:31:07.3601210Z �[32m==>�[0m �[1mInstalling Cask �[32mdocker�[39m�[0m
2022-09-21T08:31:07.3626720Z �[33mWarning:�[0m macOS's Gatekeeper has been disabled for this Cask
2022-09-21T08:33:21.0130720Z �[34m==>�[0m �[1mPurging files for version 4.10.1,82475 of Cask docker�[0m
2022-09-21T08:33:21.0231200Z �[31mError:�[0m BOM for path '/private/tmp/d20220921-2130-1mii4q7/dmg.ffQJ8f' is empty.
2022-09-21T08:33:21.0374870Z ##[error]Error: The process '/usr/local/bin/brew' failed with exit code 1

But sometimes it works... Any ideas how to troubleshoot this? Maybe this action can retry installing docker on failure?

v1: Docker is failing to install leading to infinite loop on wait

It looks like a file isn't being found during docker installation leading to a installation failure. When the action goes to boot docker, it infinitely waits.

Significant Portion of Log:

  + sudo /bin/cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools
  + sudo /bin/cp /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist /Library/LaunchDaemons/
  cp: /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist: No such file or directory
  + sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
  + sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
  chmod: /Library/LaunchDaemons/com.docker.vmnetd.plist: No such file or directory
  + sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
  /Library/LaunchDaemons/com.docker.vmnetd.plist: No such file or directory
  + open -g /Applications/Docker.app
  + sleep 60
  + docker info
  bash: line 12: docker: command not found

Entire Log:

Run docker-practice/actions-setup-docker@v1
  with:
    docker_version: 20.10
    docker_nightly_version: snapshot-20210202
    docker_channel: stable
    docker_buildx: true
    docker_cli_experimental: enabled
    docker_daemon_json: {
    "experimental": true
  }
  
  env:
    AWS_DEFAULT_REGION: us-west-2
    AWS_REGION: us-west-2
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    AWS_SESSION_TOKEN: ***
    pythonLocation: /Users/runner/hostedtoolcache/Python/3.7.10/x64
install docker
  /usr/local/bin/brew update
  ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
    https://github.com/Homebrew/brew#donations
  Updated 6 taps (homebrew/core, homebrew/cask, homebrew/bundle, homebrew/services, mongodb/brew and aws/tap).
  ==> New Formulae
  autorestic
  aws/tap/aws-sam-cli-beta-cdk
  fabric-installer
  gtksourceview5
  imath
  ki
  lefthook
  lm-sensors
  nox
  oksh
  openj9
  pgxnclient
  qodem
  revive
  seqkit
  stp
  sysstat
  tssh
  virtualenvwrapper
  webhook
  xfig
  ==> Updated Formulae
  abcmidi
  abseil
  abyss
  acl2
  activemq
  adwaita-icon-theme
  akamai
  aliyun-cli
  alluxio
  alot
  amp
  angular-cli
  ansible
  aom
  apache-arrow
  apache-arrow-glib
  apache-flink
  apngasm
  apollo-cli
  appium
  arangodb
  artifactory
  asciidoctorj
  astrometry-net
  atlantis
  auditbeat
  autopep8
  autorest
  aws-cdk
  aws-iam-authenticator
  awscli
  awscli@1
  babel
  babeld
  bazelisk
  bear
  benthos
  bibtexconv
  bind
  bitwise
  black
  boost
  bpytop
  breezy
  broot
  buildkit
  bundletool
  calc
  calicoctl
  cargo-audit
  cargo-watch
  carla
  cartridge-cli
  cbmc
  cdk
  cern-ndiff
  cfn-lint
  cfssl
  cglm
  cgns
  chakra
  cheat
  checkbashisms
  checkov
  checkstyle
  chezmoi
  circleci
  clingo
  clojure-lsp
  cloud-nuke
  cloudflare-wrangler
  cmake
  cointop
  collector-sidecar
  comby
  commandbox
  composer
  conan
  condure
  contentful-cli
  copilot
  cortex
  couchdb
  cpl
  cpr
  crane
  croc
  crowdin
  csvq
  cubejs-cli
  dartsim
  datalad
  dbdeployer
  deno
  dependency-check
  devdash
  devspace
  diffoscope
  dmd
  dnsperf
  docfx
  docutils
  dolt
  dosbox-x
  druid
  dua-cli
  duplicity
  dvc
  dwdiff
  dylibbundler
  earthly
  eksctl
  emscripten
  enzyme
  erlang
  eslint
  ethereum
  exploitdb
  extra-cmake-modules
  fastlane
  faudio
  fdk-aac
  fennel
  fetchmail
  ffmpeg
  ffuf
  fig2dev
  file-roller
  filebeat
  findomain
  fizz
  flank
  flow
  flow-cli
  flux
  flyway
  folly
  fonttools
  forge
  fortio
  fq
  freeciv
  freeling
  freetds
  frugal
  gallery-dl
  gdal
  gdb
  gdu
  geph4
  ghz
  ghz-web
  git-annex
  git-cinnabar
  git-quick-stats
  git-review
  gitleaks
  gitmoji
  gitui
  gitversion
  gjs
  glances
  glooctl
  glslang
  gmsh
  gnome-autoar
  gnunet
  gopass
  gostatic
  groovysdk
  grpc
  grpcurl
  gtk4
  guile
  harfbuzz
  heartbeat
  helmsman
  hfstospell
  hlint
  howdoi
  hsd
  hugo
  iam-policy-json-to-terraform
  icu4c
  igraph
  imagemagick
  imagemagick@6
  imgproxy
  include-what-you-use
  indicators
  influxdb
  infracost
  inframap
  innotop
  internetarchive
  inxi
  ipython
  ispc
  istioctl
  jack
  janet
  jc
  jenkins
  jfrog-cli
  jpeg-turbo
  jrnl
  juju
  just
  jxrlib
  k3d
  k9s
  karchive
  kdoctools
  keptn
  khal
  ki18n
  kitchen-sync
  knock
  knot-resolver
  kotlin
  kube-linter
  kubebuilder
  kubecfg
  kubergrunt
  kubevela
  kyma-cli
  ldc
  lean
  less
  libass
  libcdr
  libcouchbase
  libdrm
  libepoxy
  libhandy
  libical
  liblcf
  liblouis
  libmaxminddb
  libmicrohttpd
  libmspub
  libofx
  libosmium
  libphonenumber
  libpsl
  librsvg
  libsvm
  libtcod
  libvisio
  libxkbcommon
  libxlsxwriter
  liquibase
  liquidctl
  lldpd
  llvm@11
  localstack
  logstash
  logtalk
  macchina
  mame
  mapnik
  mapserver
  mavsdk
  maxima
  mdbtools
  mercurial
  meson
  metabase
  metricbeat
  micronaut
  micropython
  minio
  minio-mc
  mongodb/brew/mongodb-community
  mongodb/brew/mongosh
  monitoring-plugins
  moto
  mpd
  mpich
  mtools
  muffet
  mujs
  mx
  n
  name-that-hash
  nano
  nativefier
  ncmpcpp
  neo4j
  newrelic-cli
  nfpm
  nim
  node
  node-build
  node-sass
  node@10
  node@12
  node@14
  nodebrew
  notmuch
  nuclei
  nushell
  oauth2_proxy
  ocrmypdf
  oha
  okteto
  onednn
  opa
  open-mpi
  openblas
  openrct2
  openttd
  operator-sdk
  or-tools
  orientdb
  ortp
  pacapt
  packetbeat
  pazpar2
  pcb2gcode
  pdftoipe
  pdm
  php
  php-cs-fixer
  [email protected]
  [email protected]
  [email protected]
  phpmd
  phpstan
  picard-tools
  pipx
  plantuml
  pmd
  pngcheck
  pngquant
  pnpm
  poppler
  postgresql
  postgresql@10
  postgresql@11
  postgresql@12
  prestodb
  pspg
  pumba
  pyenv
  pylint
  [email protected]
  [email protected]
  qmmp
  qrcp
  qt
  quex
  rabbitmq
  rakudo-star
  rancher-cli
  raylib
  rclone
  rdkit
  re-flex
  reorder-python-imports
  repo
  rgf
  rke
  rom-tools
  rpm
  rqlite
  [email protected]
  [email protected]
  rust-analyzer
  s2n
  saml2aws
  sbcl
  sbt
  sbtenv
  scalaenv
  scamper
  scipy
  semgrep
  serverless
  shairport-sync
  sile
  simgrid
  skaffold
  snakemake
  sniffglue
  snowpack
  sonar-scanner
  spotify-tui
  sqlc
  sqlite
  srt
  starship
  staticcheck
  stgit
  stlink
  strace
  structurizr-cli
  svtplay-dl
  syncthing
  t-rec
  tarantool
  taskwarrior-tui
  tctl
  tectonic
  tektoncd-cli
  telegraf
  teleport
  tepl
  terracognita
  terraform
  terraform-docs
  terraform-ls
  [email protected]
  [email protected]
  [email protected]
  terragrunt
  terrascan
  tfenv
  tflint
  tfsec
  thanos
  threadweaver
  timg
  tm
  tomcat@7
  translate-toolkit
  triangle
  truffle
  tvnamer
  twarc
  txr
  ugrep
  urweb
  v2ray
  vagrant-completion
  vala
  vale
  vapoursynth
  vim
  virustotal-cli
  vitess
  vte3
  vtk
  vulkan-headers
  wangle
  watchexec
  wcslib
  webdis
  websocat
  whistle
  widelands
  wireguard-go
  wireguard-tools
  xcb-proto
  xclogparser
  xorgproto
  xplr
  xtensor
  yara
  yaz
  youtube-dl
  yq
  yubikey-agent
  z.lua
  zabbix
  zebra
  znc
  zorba
  zoxide
  zsh-completions
  zsh-vi-mode
  ==> New Casks
  cryptonomic-galleon
  fpc-laz
  fpc-src-laz
  hancom-word
  hook
  ilspy
  invoker
  irpf2021
  jellyfin-media-player
  recut
  sbarex-qlmarkdown
  shield
  siyuan
  specter
  tabtopus
  vitals
  ==> Updated Casks
  115browser
  1password-cli
  5kplayer
  8bitdo-ultimate-software
  a-better-finder-attributes
  accordance
  acorn
  activedock
  adobe-air
  adoptopenjdk
  aerial
  aircall
  airfoil
  alfaview
  alfred
  altair-graphql-client
  amazon-workspaces
  android-studio
  another-redis-desktop-manager
  anydo
  appcode
  arq
  asciidocfx
  atlauncher
  audio-hijack
  aural
  avast-secure-browser
  avocode
  axe-edit-iii
  backuploupe
  badlion-client
  banksiagui
  batteries
  bbedit
  bdash
  beaker-browser
  bean
  beatunes
  betelguese
  bigsur-cache-cleaner
  bilimini
  binance
  bitcoin-core
  bleunlock
  blisk
  blitz
  blocs
  blueharvest
  bluej
  bluejeans
  bluewallet
  bookends
  boost-note
  bootchamp
  bootstrap-studio
  brave-browser
  burp-suite
  buttercup
  c0re100-qbittorrent
  cacher
  cakebrew
  calendar-366
  calibre
  camo-studio
  camtasia
  canva
  caprine
  captin
  caramba-switcher
  carbon-copy-cloner
  catch
  chalk
  chatology
  cheatsheet
  checkra1n
  chia
  chirp
  chromium
  cinderella
  clash-for-windows
  cleanmymac
  clicker-for-youtube
  clion
  cloudapp
  cmake
  codelite
  cog
  commandq
  connectiq
  copyq
  cryptomator
  cutter
  dash
  datagrip
  dbeaver-community
  dbvisualizer
  dcp-o-matic-player
  dcv-viewer
  debookee
  devbook
  devolo-cockpit
  devonagent
  devonthink
  devutils
  dingtalk
  disk-drill
  diskcatalogmaker
  docker
  downie
  dropbox
  dropbox-passwords
  droplr
  dropshare
  drovio
  duplicati
  dynobase
  eaglefiler
  electerm
  electron
  electronmail
  electrumsv
  element
  eloston-chromium
  enpass
  epic-games
  epichrome
  etrecheckpro
  eul
  evernote
  exist-db
  exodus
  expandrive
  extraterm
  f-bar
  fantastical
  farrago
  ff-works
  find-any-file
  fing
  firefly
  flic
  flipper
  flock
  flutter
  fluxcenter
  fontbase
  foobar2000
  free42-binary
  free42-decimal
  freecad
  futubull
  gdat
  gdlauncher
  geekbench
  genymotion
  geogebra
  geotag-photos-pro
  geph
  get-iplayer-automator
  github
  glyphs
  godot-mono
  goodsync
  google-chrome
  gpxsee
  grandtotal
  grid
  grids
  guitar-pro
  hammerspoon
  helo
  hey
  hookshot
  http-toolkit
  ibackup-viewer
  ibm-cloud-cli
  iconjar
  igdm
  imazing
  imdone
  impactor
  insomnia
  insync
  intellij-idea
  intellij-idea-ce
  ipfs
  ipsecuritas
  isubtitle
  iterm2
  ivpn
  izip
  jami
  jaxx-liberty
  jcryptool
  jdk-mission-control
  josm
  julia
  kdiff3
  keep-it
  keka
  kext-updater
  keyboard-maestro
  kitty
  knotes
  kodelife
  kyokan-bob
  laravel-kit
  lastpass
  latexit
  launchcontrol
  lazarus
  ledger-live
  lens
  liclipse
  lidarr
  lightkey
  lilypond
  lingon-x
  listen1
  loaf
  logisim
  logos
  loom
  lunar-client
  lx-music
  macupdater
  mailbutler
  mailplane
  maltego
  marked
  marvel
  mblock
  mcreator
  mediaelch
  mediahuman-youtube-downloader
  meetingbar
  megasync
  melonds
  mendeley-reference-manager
  menuwhere
  metabase
  metasploit
  microsoft-azure-storage-explorer
  microsoft-edge
  microsoft-teams
  middle
  milanote
  milkman
  miniforge
  miro
  missive
  mochi
  modern-csv
  moom
  mubu
  mudlet
  mullvadvpn
  multi
  multitouch
  munki
  musicbrainz-picard
  mymonero
  name-mangler
  natron
  nault
  navicat-data-modeler
  navicat-data-modeler-essentials
  neat-reader
  neo4j
  netron
  nextcloud
  ngrok
  nheko
  nordlocker
  nordpass
  nordvpn
  nosql-workbench
  nosqlbooster-for-mongodb
  nova
  nucleo
  nwjs
  ocenaudio
  odrive
  one-switch
  openaudible
  opencore-configurator
  openphone
  openra
  openttd
  opera
  opera-gx
  operadriver
  operator
  opgg
  oracle-jdk
  oracle-jdk-javadoc
  origami-studio
  orka
  osquery
  outline
  outline-manager
  packetsender
  panoply
  path-finder
  pd
  pdfsam-basic
  permute
  pgadmin4
  photosweeper-x
  phpstorm
  plex
  plex-media-server
  poedit
  polycom-realpresence
  pomello
  popclip
  popo
  postman
  power-manager
  powerphotos
  pragli
  prince
  principle
  proclaim
  propresenter
  protopie
  proxifier
  publii
  purei-play
  pushplaylabs-sidekick
  pycharm-ce-with-anaconda-plugin
  pycharm-edu
  qbittorrent
  qgis
  qownnotes
  qt3dstudio
  quip
  radicle-upstream
  radio-silence
  raiderio
  raven-reader
  raycast
  raze
  react-native-debugger
  remember-the-milk
  remote-desktop-manager
  remote-desktop-manager-free
  repetier-host
  retroarch-metal
  reunion
  rhino
  rider
  rightfont
  river-sparkle
  roboform
  rotki
  rubymine
  runway
  script-debugger
  seamonkey
  second-life-viewer
  securesafe
  segger-embedded-studio-for-arm
  sensei
  sentinel
  session
  setapp
  shimo
  shotcut
  sia-ui
  sipgate-softphone
  sketchbook
  slack
  slippi-dolphin
  smartgit
  smartsynchronize
  smultron
  softorino-youtube-converter
  solvespace
  sonic-visualiser
  sonobus
  soulver
  sound-control
  spark-ar-studio
  spatterlight
  spectx
  speedify
  spideroakone
  splashtop-business
  spotify
  spotter
  squirrel
  standard-notes
  starsector
  stats
  stella
  stoplight-studio
  stremio
  stretchly
  studiolinkstandalone
  sublime-merge
  surfshark
  surge
  sweet-home3d
  syncovery
  synergy
  synology-note-station-client
  syntax-highlight
  tableau
  tableau-public
  tableau-reader
  tagspaces
  teamviewer
  telegram
  telegram-desktop
  tempo
  tencent-lemon
  tencent-meeting
  terminus
  termius
  texshop
  textexpander
  thedesk
  thunder
  tigervnc-viewer
  timeular
  tinkerwell
  tiny-player
  tinymediamanager
  toinane-colorpicker
  toptracker
  torguard
  tortoisehg
  tradingview
  trainerroad
  transmit
  trilium-notes
  tripmode
  tuple
  tutanota
  twobird
  typeface
  typora
  understand
  unity-hub
  usage
  usenapp
  utm
  vagrant
  valentina-studio
  vanilla
  vellum
  versions
  videofusion
  vienna
  virtualbox
  virtualbox-extension-pack
  virtualhere
  virtualhereserver
  viscosity
  visual-studio
  vivaldi
  volanta
  vrew
  vuescan
  vv
  warzone-2100
  waterfox
  waterfox-classic
  wavebox
  webcatalog
  wechat
  wechatwebdevtools
  whatroute
  whatsapp
  wickrme
  wifi-explorer
  wireshark-chmodbpf
  workflowy
  workspaces
  wowup
  writemapper
  xamarin-ios
  xampp
  xmplify
  xpra
  xquartz
  yakyak
  yam-display
  yate
  yesplaymusic
  yinxiangbiji
  youku
  yt-music
  zecwallet-lite
  zerotier-one
  zoho-workdrive
  zoom
  zoom-for-it-admins
  zotero
  zulu
  zy-player
  ==> Deleted Casks
  clipbuddy
  cliqz
  cuteclips
  duckstation
  fpcsrc
  hubic
  lingo
  netbeans-cpp
  netbeans-java-ee
  netbeans-java-se
  nndd
  swift-explorer
  tracks-live
  transmit-disk
  vrep
  wakeonlan
  
  You have 14 outdated formulae and 3 outdated casks installed.
  You can upgrade them with brew upgrade
  or list them with brew outdated.
  /usr/local/bin/brew install --cask docker
  ==> Downloading https://desktop.docker.com/mac/stable/amd64/63878/Docker.dmg
  ==> Installing Cask docker
  Warning: macOS's Gatekeeper has been disabled for this Cask
  ==> Moving App 'Docker.app' to '/Applications/Docker.app'
  🍺  docker was successfully installed!
/bin/mkdir -p /Users/runner/.docker
show daemon json content
/usr/bin/xattr -d -r com.apple.quarantine /Applications/Docker.app
start docker
  /usr/bin/sudo bash -c 
  set -x
  
  sudo /bin/cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools
  sudo /bin/cp /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist /Library/LaunchDaemons/
  sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
  sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
  sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
  open -g /Applications/Docker.app || exit
  
  sleep 60
  
  docker info > /dev/null || true
  
  sleep 30
  
  docker info > /dev/null || true
  # Wait for the server to start up, if applicable.
  i=0
  while ! docker system info &>/dev/null; do
  (( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
  sleep 1
  done
  (( i )) && printf '
  '
  
  echo "-- Docker is ready."
  
  + sudo /bin/cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools
  + sudo /bin/cp /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist /Library/LaunchDaemons/
  cp: /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist: No such file or directory
  + sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
  + sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
  chmod: /Library/LaunchDaemons/com.docker.vmnetd.plist: No such file or directory
  + sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
  /Library/LaunchDaemons/com.docker.vmnetd.plist: No such file or directory
  + open -g /Applications/Docker.app
  + sleep 60
  + docker info
  bash: line 12: docker: command not found
  + true
  + sleep 30
  + docker info
  bash: line 16: docker: command not found
  + true
  + i=0
  + docker system info
  + ((  i++ == 0  ))
  + printf %s '-- Waiting for Docker to finish starting up...'
  + sleep 1
  -- Waiting for Docker to finish starting up...+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  .+ sleep 1
  + docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .+ docker system info
  + ((  i++ == 0  ))
  + printf .
  + sleep 1
  .

Error: Error: The process '/usr/bin/sudo' failed with exit code 100

Run docker-practice/actions-setup-docker@master
  with:
    docker_version: 20.10
    docker_nightly_version: snapshot-20210202
    docker_channel: stable
    docker_buildx: true
    docker_cli_experimental: enabled
    docker_daemon_json: {
    "experimental": true
  }
  
  env:
    DOCKER_PASS: ***
    GOROOT: /opt/hostedtoolcache/go/1.16.0/x64
check docker systemd status
  /usr/bin/sudo systemctl status docker
  ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: active (running) since Sat 2021-03-13 12:21:37 UTC; 36s ago
  TriggeredBy: ● docker.socket
         Docs: https://docs.docker.com
     Main PID: 962 (dockerd)
        Tasks: 10
       Memory: 147.4M
       CGroup: /system.slice/docker.service
               └─962 /usr/bin/dockerd -H fd:// --containerd /var/run/containerd/containerd.sock
  
  Mar 13 12:21:35 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:35.908350284Z" level=warning msg="Your kernel does not support cgroup blkio weight"
  Mar 13 12:21:35 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:35.908357284Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
  Mar 13 12:21:35 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:35.908516385Z" level=info msg="Loading containers: start."
  Mar 13 12:21:36 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:36.442773529Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
  Mar 13 12:21:36 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:36.692818788Z" level=info msg="Loading containers: done."
  Mar 13 12:21:36 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:36.988534550Z" level=warning msg="Not using native diff for overlay2, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled" storage-driver=overlay2
  Mar 13 12:21:36 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:36.988758251Z" level=info msg="Docker daemon" commit=46229ca1d815cfd4b50eb377ac75ad8300e13a85 graphdriver(s)=overlay2 version=20.10.3+azure
  Mar 13 12:21:36 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:36.989416156Z" level=info msg="Daemon has completed initialization"
  Mar 13 12:21:37 fv-az139-284 systemd[1]: Started Docker Application Container Engine.
  Mar 13 12:21:37 fv-az139-284 dockerd[962]: time="2021-03-13T12:21:37.072769108Z" level=info msg="API listen on /run/docker.sock"
check docker version
  /usr/bin/docker version
  Client:
   Version:           20.10.3+azure
   API version:       1.41
   Go version:        go1.13.15
   Git commit:        48d30b5b32e99c932b4ea3edca74353feddd83ff
   Built:             Thu Jan 28 22:27:59 2021
   OS/Arch:           linux/amd64
   Context:           default
   Experimental:      true
  
  Server:
   Engine:
    Version:          20.10.3+azure
    API version:      1.41 (minimum version 1.12)
    Go version:       go1.13.15
    Git commit:       46229ca1d815cfd4b50eb377ac75ad8300e13a85
    Built:            Thu Jan 28 21:33:12 2021
    OS/Arch:          linux/amd64
    Experimental:     false
   containerd:
    Version:          1.4.3+azure
    GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
   runc:
    Version:          1.0.0-rc93
    GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
   docker-init:
    Version:          0.19.0
    GitCommit:        
/usr/bin/curl -fsSL -o /tmp/docker.gpg https://download.docker.com/linux/ubuntu/gpg
/usr/bin/sudo apt-key add /tmp/docker.gpg
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
add apt source
  /usr/bin/sudo add-apt-repository deb [arch=amd64,arm64] https://download.docker.com/linux/ubuntu focal stable
  Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
  Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease
  Get:3 https://download.docker.com/linux/ubuntu focal InRelease [36.2 kB]
  Hit:4 https://storage.googleapis.com/bazel-apt stable InRelease
  Get:5 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
  Hit:6 https://packages.microsoft.com/repos/azure-cli focal InRelease
  Get:7 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
  Get:8 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
  Ign:10 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
  Get:11 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
  Get:9 https://cli-assets.heroku.com/apt ./ InRelease [2879 B]
  Get:13 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release [5372 B]
  Get:14 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release.gpg [801 B]
  Get:15 https://packages.cloud.google.com/apt cloud-sdk InRelease [6739 B]
  Get:16 https://download.mono-project.com/repo/ubuntu stable-focal InRelease [4416 B]
  Hit:17 http://ppa.launchpad.net/apt-fast/stable/ubuntu focal InRelease
  Get:12 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [9383 B]
  Get:18 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1084 B]
  Get:19 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB]
  Get:21 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [8458 B]
  Get:22 https://download.docker.com/linux/ubuntu focal/stable arm64 Packages [8408 B]
  Hit:23 http://ppa.launchpad.net/hvr/ghc/ubuntu focal InRelease
  Get:24 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [844 kB]
  Get:25 http://azure.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [202 kB]
  Get:26 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [12.8 kB]
  Get:27 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [156 kB]
  Get:28 http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [23.3 kB]
  Get:29 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [750 kB]
  Get:30 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [157 kB]
  Get:31 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [16.3 kB]
  Hit:32 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
  Get:33 https://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [81.6 kB]
  Get:34 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [61.0 kB]
  Get:35 https://cli-assets.heroku.com/apt ./ Packages [620 B]
  Ign:36 https://dl.bintray.com/sbt/debian  InRelease
  Hit:37 https://dl.yarnpkg.com/debian stable InRelease
  Get:38 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages [8916 B]
  Get:39 https://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [163 kB]
  Hit:20 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
  Get:40 https://download.mono-project.com/repo/ubuntu stable-focal/main amd64 Packages [46.8 kB]
  Get:41 https://dl.bintray.com/sbt/debian  Release [815 B]
  Get:42 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [528 kB]
  Get:43 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [114 kB]
  Get:44 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [7264 B]
  Get:45 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [133 kB]
  Get:46 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [19.5 kB]
  Get:47 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [550 kB]
  Get:48 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [80.7 kB]
  Get:49 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [10.6 kB]
  Get:50 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [3056 B]
  Ign:52 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  InRelease
  Err:53 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  Release
    Certificate verification failed: The certificate is NOT trusted. The received OCSP status response is invalid.  Could not handshake: Error in the certificate verification. [IP: 195.135.221.134 443]
  Get:54 https://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [191 kB]
  Reading package lists...
  E: The repository 'https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  Release' no longer has a Release file.
  Error: Error: The process '/usr/bin/sudo' failed with exit code 100

Sometimes the action gives an error

I can not reproduce the error consistently. It sometimes doesn't gives the error and runs fine. Maybe you can help me out to find out the rootcause. It sometimes fails with this error:

Run docker-practice/actions-setup-docker@master
install docker
  /usr/local/bin/wget https://raw.githubusercontent.com/Homebrew/homebrew-cask/300b1dcc6d9f61cc93e9351e76066f0846beefe9/Casks/docker.rb
  --2021-12-14 11:16:35--  https://raw.githubusercontent.com/Homebrew/homebrew-cask/300b1dcc6d9f61cc93e9351e76066f0846beefe9/Casks/docker.rb
  Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
  Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 3701 (3.6K) [text/plain]
  Saving to: ‘docker.rb’
  
       0K ...                                                   100% 12.9M=0s
  
  2021-12-14 11:16:35 (12.9 MB/s) - ‘docker.rb’ saved [3701/3701]
  
  /usr/local/bin/brew install --cask docker.rb
  ==> Downloading https://desktop.docker.com/mac/stable/amd64/67351/Docker.dmg
  ==> Installing Cask docker
  Warning: macOS's Gatekeeper has been disabled for this Cask
  ==> Purging files for version 3.6.0,67351 of Cask docker
  Error: No such file or directory @ rb_file_s_stat - /private/tmp/d20211214-929-6yav2p/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Resources/de.lproj
  Error: Error: The process '/usr/local/bin/brew' failed with exit code 1

And sometimes with this error:

Run docker-practice/actions-setup-docker@master
install docker
/bin/mkdir -p /Users/runner/.docker
show daemon json content
/usr/bin/xattr -d -r com.apple.quarantine /Applications/Docker.app
start docker
  /usr/bin/sudo bash -c 
  set -x
  
  VmnetdVersion=$(cat /Applications/Docker.app/Contents/Info.plist | tail -5 | head -1 | cut -d '>' -f 2 | cut -d '<' -f 1)
  
  cat <<EOF | tee /tmp/com.docker.vmnetd.plist
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
  <dict>
  	<key>Label</key>
  	<string>com.docker.vmnetd</string>
  	<key>Program</key>
  	<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
  	<key>ProgramArguments</key>
  	<array>
  		<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
  	</array>
  	<key>RunAtLoad</key>
  	<true/>
  	<key>Sockets</key>
  	<dict>
  		<key>Listener</key>
  		<dict>
  			<key>SockPathMode</key>
  			<integer>438</integer>
  			<key>SockPathName</key>
  			<string>/var/run/com.docker.vmnetd.sock</string>
  		</dict>
  	</dict>
  	<key>Version</key>
  	<string>${VmnetdVersion}</string>
  </dict>
  </plist>
  EOF
  
  sudo /bin/cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools
  # sudo /bin/cp /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist /Library/LaunchDaemons/
  sudo /bin/cp /tmp/com.docker.vmnetd.plist /Library/LaunchDaemons/
  sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
  sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
  sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
  open -g /Applications/Docker.app || exit
  
  sleep 60
  
  docker info > /dev/null || true
  
  sleep 30
  
  docker info > /dev/null || true
  # Wait for the server to start up, if applicable.
  i=0
  while ! docker system info &>/dev/null; do
  (( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
  sleep 1
  done
  (( i )) && printf '
  '
  
  echo "-- Docker is ready."
  
  ++ cat /Applications/Docker.app/Contents/Info.plist
  ++ tail -5
  ++ head -1
  ++ cut -d '>' -f 2
  ++ cut -d '<' -f 1
  + VmnetdVersion=61
  + cat
  + tee /tmp/com.docker.vmnetd.plist
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
  <dict>
  	<key>Label</key>
  	<string>com.docker.vmnetd</string>
  	<key>Program</key>
  	<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
  	<key>ProgramArguments</key>
  	<array>
  		<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
  	</array>
  	<key>RunAtLoad</key>
  	<true/>
  	<key>Sockets</key>
  	<dict>
  		<key>Listener</key>
  		<dict>
  			<key>SockPathMode</key>
  			<integer>438</integer>
  			<key>SockPathName</key>
  			<string>/var/run/com.docker.vmnetd.sock</string>
  		</dict>
  	</dict>
  	<key>Version</key>
  	<string>61</string>
  </dict>
  </plist>
  + sudo /bin/cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools
  + sudo /bin/cp /tmp/com.docker.vmnetd.plist /Library/LaunchDaemons/
  + sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
  + sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
  + sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
  + open -g /Applications/Docker.app
  The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3844, _LSFunction=_LSOpenStuffCallLocal}
  + exit
  Error: Error: The process '/usr/bin/sudo' failed with exit code 1

Support rootless docker

Is there any options/environments we can use to support rootless docker setup?

for example, to allow systemctl start --user docker

Creating gpg key file doesn't work in user is not root

Here: https://github.com/docker-practice/actions-setup-docker/blob/fd7ecdac7caf8e2c541a48c9bcc280aae59a8461/lib/setup-docker.js#LL290C91-L290C91

The last sudo makes sure cat is run with root privileges but not the redirection of the output >. Reproduce:

(run as non-root user)

$ sudo echo "test" >/usr/share/keyrings/docker-archive-keyring.gpg 
bash: /usr/share/keyrings/docker-archive-keyring.gpg: Permission denied

# but this works
sudo sh -c 'echo "test" >/usr/share/keyrings/docker-archive-keyring.gpg'

Tcp support

I tried:

   - name: Install Docker
      uses: docker-practice/actions-setup-docker@master
      with:
        docker_version: 25.0.4
        docker_daemon_json: "{\"hosts\": [\"tcp://0.0.0.0:2375\", \"unix:///var/run/docker.sock\"]}"

But it didn't work

check docker version
check docker systemd status
show default daemon json content
show daemon json content
  /usr/bin/sudo cat /etc/docker/daemon.json
  {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
/usr/bin/sudo systemctl restart docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
Error: Error: The process '/usr/bin/sudo' failed with exit code 1

Failure on Docker installation!!

/usr/bin/sudo sh -c dpkg -i /tmp/*.deb
Selecting previously unselected package containerd.io.
dpkg: regarding .../containerd.io_0.20200914.164213~5b3ac0c-1_amd64.deb containing containerd.io:
containerd.io conflicts with runc
moby-runc provides runc and is present and installed.

dpkg: error processing archive /tmp/containerd.io_0.20200914.1642135b3ac0c-1_amd64.deb (--install):
conflicting packages - not installing containerd.io
(Reading database ... 283207 files and directories currently installed.)
Preparing to unpack .../libseccomp2_2.4.4-1
bpo10+1_amd64.deb ...
Unpacking libseccomp2:amd64 (2.4.4-1bpo10+1) over (2.4.3-1ubuntu3.18.04.3) ...
Selecting previously unselected package moby-snapshot-cli.
Preparing to unpack .../moby-snapshot-cli_0.0.0-20200914120255-e0eba83-0
ubuntu-focal_amd64.deb ...
Unpacking moby-snapshot-cli (5:0.0.0-20200914120255-e0eba83-0ubuntu-focal) ...
Selecting previously unselected package moby-snapshot-rootless-extras.
Preparing to unpack .../moby-snapshot-rootless-extras_0.0.0-20200914120255-e0eba83-0
ubuntu-focal_amd64.deb ...
Unpacking moby-snapshot-rootless-extras (5:0.0.0-20200914120255-e0eba83-0ubuntu-focal) ...
Selecting previously unselected package moby-snapshot.
Preparing to unpack .../moby-snapshot_0.0.0-20200914120255-e0eba83-0
ubuntu-focal_amd64.deb ...
Unpacking moby-snapshot (5:0.0.0-20200914120255-e0eba83-0ubuntu-focal) ...
Setting up libseccomp2:amd64 (2.4.4-1
bpo10+1) ...
Setting up moby-snapshot-cli (5:0.0.0-20200914120255-e0eba83-0~ubuntu-focal) ...
dpkg: dependency problems prevent configuration of moby-snapshot:
moby-snapshot depends on containerd.io; however:
Package containerd.io is not installed.
Package moby-containerd which provides containerd.io is not installed.

dpkg: error processing package moby-snapshot (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of moby-snapshot-rootless-extras:
moby-snapshot-rootless-extras depends on moby-snapshot; however:
Package moby-snapshot is not configured yet.

dpkg: error processing package moby-snapshot-rootless-extras (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
/tmp/containerd.io_0.20200914.164213~5b3ac0c-1_amd64.deb
moby-snapshot
moby-snapshot-rootless-extras
Error: Error: The process '/usr/bin/sudo' failed with exit code 1

REF: https://github.com/danitseitlin/redis-modules-sdk/pull/44/checks?check_run_id=1893336254

Cannot install docker (Conflicts: runc)

Just today, this started happening

install docker
  /usr/bin/sudo apt-get -y install docker-ce=5:20.10.20~3-0~ubuntu-jammy docker-ce-cli=5:20.10.20~3-0~ubuntu-jammy
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
  
  The following packages have unmet dependencies:
   containerd.io : Conflicts: runc
   moby-runc : Conflicts: runc
  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Until now we had runs-on: ubuntu-latest. Same thing when setting it to ubuntu-22.04

What can I do?

MacOS: group 'wait docker running' SOMETIMES fails due to timeout

I'm using docker-practice/actions-setup-docker@master on macos-12.

Sometimes the actions fails with error: Error: The process '/usr/bin/sudo' failed with exit code 1 during the execution of wait docker running group for timing out as follows (I removed intermediate output because it is repetitive):

wait docker running
  /usr/bin/sudo bash -c 
  set -x
  command -v docker || echo 'test docker command 1: not found'
  i=0
  while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/dev/null; do
  (( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
  command -v docker || echo 'test docker command loop: not found'
  sleep 1
  # wait 180s(3min)
  if [ $i -gt 180 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi
  done
  echo "::notice::-- Docker is ready.Wait time is $i s"
  uname -a || true
  system_profiler SPHardwareDataType || true
  
  + command -v docker
  + echo 'test docker command 1: not found'
  + i=0
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  test docker command 1: not found
  + ((  i++ == 0  ))
  + printf %s '-- Waiting for Docker to finish starting up...'
  + command -v docker
  -- Waiting for Docker to finish starting up...+ echo 'test docker command loop: not found'
  + sleep 1
  test docker command loop: not found
  + '[' 1 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 2 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 3 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  + sleep 1
  ./usr/local/bin/docker
  + '[' 4 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  + sleep 1
  ./usr/local/bin/docker
  + '[' 5 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 6 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  
 [... same output here ...]

  + sleep 1
  + '[' 177 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 178 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  .+ command -v docker
  + sleep 1
  /usr/local/bin/docker
  + '[' 179 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 180 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 181 -gt 180 ']'
  + exit 1
  Error: Error: The process '/usr/bin/sudo' failed with exit code 1

Then, if I try to re-run the job, it might pass. Below is the output of the same failed job when it is run again and succeeds:

wait docker running
  /usr/bin/sudo bash -c 
  set -x
  command -v docker || echo 'test docker command 1: not found'
  i=0
  while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/dev/null; do
  (( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.'
  command -v docker || echo 'test docker command loop: not found'
  sleep 1
  # wait 180s(3min)
  if [ $i -gt 180 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi
  done
  echo "::notice::-- Docker is ready.Wait time is $i s"
  uname -a || true
  system_profiler SPHardwareDataType || true
  
  + command -v docker
  + echo 'test docker command 1: not found'
  test docker command 1: not found
  + i=0
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf %s '-- Waiting for Docker to finish starting up...'
  + command -v docker
  + echo 'test docker command loop: not found'
  + sleep 1
  -- Waiting for Docker to finish starting up...test docker command loop: not found
  + '[' 1 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  .+ command -v docker
  + sleep 1
  /usr/local/bin/docker
  + '[' 2 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker

  [... same output here ...]

  + sleep 1
  + '[' 154 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  ./usr/local/bin/docker
  + sleep 1
  + '[' 155 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + ((  i++ == 0  ))
  + printf .
  + command -v docker
  + sleep 1
  ./usr/local/bin/docker
  + '[' 156 -gt 180 ']'
  + /Applications/Docker.app/Contents/Resources/bin/docker system info
  + echo '::notice::-- Docker is ready.Wait time is 156 s'

As you notice, it succeeds after more than 150 seconds of the 180 seconds available before it is considered a failure. I think the problem is probably the value. Could you consider increasing the timeout time or replacing the hard-coded value with a custom definable value (not required and with 180 seconds by default, of course)?

I notice the issue #24 referrring to the same error, but I prefer to create another one because the title was misleading
for other who will face it.
If there are others details to share for resolving this issue, please let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.