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?.

Aperta
#6 3 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Shell
Stelle
27
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the self-hosted runner setup described in the linked Azure Container Apps tutorial and the workflow step invoking azure/CLI@v1 or @v2. Reproduce the Docker-daemon failure on the stated Linux runner, then determine whether the repository needs a documented or configuration change; completion means the Azure CLI step runs successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, docker, github-actions, shell
Ambito
ci-cd, cloud, devops, infrastructure
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.