Hello, je nais pas accès à mes fichiers docker-compose pont vérifier mais il me semble que le docker.sock n’est pas dans /run, mais dans /car/run/Bonjour,
J'utilise le packet Docker sous Synology.
Tentant d'nstaller NextCloud et Nginx-proxy dans ce Docker, je n'arrive pas à passer le paramétrage du volume /run/docker.sock:/tmp/docker.sock:ro.
Comment avez-vous fait ?
Tu es vraiment sûr que c’est nécessaire ?!C'est à mon reverse-proxy nginx-proxy que je veux donner accès en Read-Only à ce fichier /var/run/docker.sock.
Sans ce paramétrage valide, nginx-proxy refuse de démarrer.
date | stream | content |
---|---|---|
2022-12-19T11:17:29.530256674Z | stdout | See the documentation at: https://github.com/nginx-proxy/nginx-proxy/#usage |
2022-12-19T11:17:29.530216064Z | stdout | Typically you should run your nginxproxy/nginx-proxy with: `-v /var/run/docker.sock:/tmp/docker.sock:ro` |
2022-12-19T11:17:29.530127555Z | stdout | ERROR: you need to share your Docker host socket with a volume at /tmp/docker.sock |
2022-12-19T11:17:29.529069942Z | stdout | Info: running nginx-proxy version 1.0.3 |
Ok, mais je ne saisis pas pourquoi il en a besoin...Voici le retour de nginx-proxy au démarrage :
date stream content 2022-12-19T11:17:29.530256674Z stdout See the documentation at: https://github.com/nginx-proxy/nginx-proxy/#usage 2022-12-19T11:17:29.530216064Z stdout Typically you should run your nginxproxy/nginx-proxy with: `-v /var/run/docker.sock:/tmp/docker.sock:ro` 2022-12-19T11:17:29.530127555Z stdout ERROR: you need to share your Docker host socket with a volume at /tmp/docker.sock 2022-12-19T11:17:29.529069942Z stdout Info: running nginx-proxy version 1.0.3
Et il boucle sur cette erreur.
Ok, je comprends mieux.De la doc de nginx-proxy :
(Sources : https://github.com/nginx-proxy/nginx-proxy/#usage et https://linuxhandbook.com/nginx-reverse-proxy-docker/)
- The docker socker is mounted read-only inside the container. This one's necessary for the reverse proxy container to generate nginx's configuration files, detect other containers with a specific environment variable.