Code Monkey home page Code Monkey logo

Comments (6)

matt-t-d avatar matt-t-d commented on May 18, 2024 1

@georgebaev I get this on my Windows machine but it works fine on linux.

Could you try docker-compose up --force-recreate --build nginx php mysql and add an entry to your hosts file e.g.
Linux: 127.0.0.1 laradock.dev
Windows probably DOCKER_IP laradock.dev

Where DOCKER_IP is the result of
$ docker-machine ip

from laradock.

Mahmoudz avatar Mahmoudz commented on May 18, 2024

first you need to visit the docker ip in the browser and not the localhost unless you are on linux OS.
however make sure you have a docker folder inside your laravel project.
and you have the right permissions set for some laravel folders.
also check the laravel.conf https://github.com/LaraDock/laradock/blob/master/nginx/laravel.conf file and make sure the paths are correct.
you can try to enter the nginx container for better understanding what's going on and debug it

from laradock.

annielmenezes avatar annielmenezes commented on May 18, 2024

Hi @Mahmoudz I get the same error. I'm using Ubuntu 16.04.

from laradock.

petehouston avatar petehouston commented on May 18, 2024

@annielmenezes what is the result of $ docker-machine env?

from laradock.

georgebaev avatar georgebaev commented on May 18, 2024

@mattythebatty thank you very much! This fixed the problem.

from laradock.

Mahmoudz avatar Mahmoudz commented on May 18, 2024

The solution summary is: use 127.0.0.1 instead of localhost in your browser.

from laradock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.