Salut les amis,

Je recherche un petit coup de pouce sur l'utilisation d'nginx avec Docker, sur Windows home édition :D

Pour expliquer rapidement, j'essaye de mettre en place un projet Symfony 3, avec MySQL, PHP et donc nginx. MySQL et PHP se lancent parfaitement. Cependant, nginx se rebelle et me balance une erreur dans la tronche :

docker-compose up nginx

ERROR: for nginx Cannot start service nginx: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"./app/config/docker/nginx.conf\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/aufs/mnt/940c53b3fa5c7cab0032c538b8f26a52c713697f6b0f2bb6c92483530b1cbfe7\\\" at \\\"/mnt/sda1/var/lib/docker/aufs/mnt/940c53b3fa5c7cab0032c538b8f26a52c713697f6b0f2bb6c92483530b1cbfe7/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\"" : Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type ERROR: Encountered errors while bringing up the project.

Ce que je comprends pas, c'est que le fichier nginx.conf existe et le chemin est bon (j'ai vérifié).

L'un d'entre vous a déjà eu ce problème ? Voici mon docker-compose :

` nginx:
image: nginx:1.10-alpine
ports:

  • 80:80
    networks:
  • default
    depends_on:
  • php
    volumes_from:
  • application
    volumes:
  • ./app/config/docker/nginx.conf:/etc/nginx/nginx.conf
  • ./app/config/docker/symfony.conf:/etc/nginx/sites-available/symfony.conf
  • ./app/config/docker/symfony.conf:/etc/nginx/sites-enabled/symfony.conf
  • ./app/config/docker/upstream.conf:/etc/nginx/conf.d/upstream.conf`

        Merci à vous !

Aucune réponse