Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no windows 10 utilizando o WSL como backand no Docker "Error response from daemon: path /home/user/project_path/docker/nginx is mounted on / but it is not a shared mount." #1

Closed
kavim opened this issue Dec 2, 2021 · 1 comment

Comments

@kavim
Copy link

kavim commented Dec 2, 2021

Senhores, ao tentar rodar docker compose up -d eu recebi o seguinte erro:
Error response from daemon: path /home/kavim/Projects/laravel/docker/nginx is mounted on / but it is not a shared mount.

Utilizando o Composer 2 no WSL (debian) eu consegui resolver (depois pesquisar um pouco) com base nesse comentário

basicamente removendo a ultima barra em ./docker/nginx/:/etc/nginx/conf.d/

    # nginx
    nginx:
        image: nginx:alpine
        restart: unless-stopped
        ports:
            - 8989:80
        volumes:
            - ./:/var/www
            - ./docker/nginx/:/etc/nginx/conf.d
        networks:
            - cursos
@carlosfgti
Copy link
Member

Que bom que conseguiu resolver, parabéns. Qualquer problema retome este tópico. TMJ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants