Azure-Samples / Azure-Samples/container-apps-ci-cd-runner-tutorial
Run azure/CLI@v2 failing with Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 27
- フォーク
- 80
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Run azure/CLI@v2 failing with Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
- github actions self-hosted runner , hosted on azure container app job as mentioned in below tutorial -
https://learn.microsoft.com/en-us/azure/container-apps/tutorial-ci-cd-runners-jobs?tabs=bash&pivots=container-apps-jobs-self-hosted-ci-cd-github-actions - Self Hosted runner is working for other job steps - checkout@v3 , azure/login@v2 , terraform setup etc. But it is failing for azure/CLI@v1 and v2
Any log messages given by the failure
Starting script execution via docker image mcr.microsoft.com/azure-cli:latest
Error: Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
cleaning up container...
Warning: Error: The process '/usr/bin/docker' failed with exit code 1
Warning: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
Expected/desired behavior
azurecli should work
OS and Version?
Architecture": "amd64",
"Os": "linux",
"OsVersion": "20.10.25+azure-1",
Versions
Architecture": "amd64",
"Os": "linux",
"OsVersion": "20.10.25+azure-1",
Mention any other details that might be useful
container is not able to start docker daemon for host .. docker client commands - docker run etc. are available.
Self Hosted runner is working for other job steps - checkout@v3 , azure/login@v2 , terraform setup etc. But it is failing for azure/CLI@v1 and v2
Thanks! We'll be in touch soon.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンク先の Azure Container Apps チュートリアルで説明されている self-hosted runner のセットアップと、azure/CLI@v1 または @v2 を呼び出す workflow のステップから始めてください。指定された Linux runner で Docker デーモンの失敗を再現し、その後、リポジトリにドキュメントまたは設定の変更が必要かどうかを判断してください。完了条件は、Azure CLI ステップが正常に実行されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, docker, github-actions, shell
- 領域
- ci-cd, cloud, devops, infrastructure
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100