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

Ouverte
#6 3 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Shell
Étoiles
27
Forks
80
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la configuration du runner auto-hébergé décrite dans le tutoriel Azure Container Apps lié et par l’étape du workflow qui appelle azure/CLI@v1 ou @v2. Reproduisez l’échec du daemon Docker sur le runner Linux indiqué, puis déterminez si le dépôt nécessite une modification de la documentation ou de la configuration ; la tâche est considérée comme terminée lorsque l’étape Azure CLI s’exécute correctement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, docker, github-actions, shell
Domaine
ci-cd, cloud, devops, infrastructure
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.