13
JhonDoe
5y

so, docker in windows looks like a mess, could not set up a laravel environment easily, then my last resort was to use a virtual machine and adios docker from my system

Comments
  • 1
    And this is exactly why I haven’t bothered yet even though I’ve been “told” too by others on here. Just another docker nightmare... I definitely need spare time to go through it thoroughly.
  • 2
    @badcopnodonuts welp, it was "cool" for simple stuff like a single container, I had a mongo container running and no problems(other than needing to restart docker manually after login dunno why to be able to start my containers) but for communication between containers and more complex stuff like laradock. nope nope
  • 2
    @jurion I DON'T get your POINT
  • 1
    @jurion for dev env it's okay to run in a vm. Deployments on a vm - that's a big far red flag
  • 2
    Docker for windows doesn't make any sense. It just doesn't.

    Docker is great and I love it. Windows is fine. I guess. To each their own.

    But docker is based on LXC, a complicated nightmare built into the kernel. It does it's job but it's a pain to work with. Docker makes it easy. It's a wrapper you could say.

    So docker on windows is a wrapper around a feature that doesn't actually exist in windows. So it brings its own container interface. which mostly just implements a micro Linux VM, so that it can have access to LXC like before. Yikes. Hard pass.
  • 2
    @deadPix3l great insight.

    and yes, docker is a linux thing, I knew that could be hard to run it on windows, but at first it wasn't as I state in some comment above.

    And as for 'why you should do that?' I did not specify. This is about my development machine, I ran some troubles with linux and as far as I'm concerned I'm stuck developing in windows, so I tried to use containers to not install services natively in windows, like mongo, xampp and that stuff. I'm mostly a linux and I used docker whenever possible, that's what I was trying to do here.
  • 1
    I use WSL with Docker on Windows and it works (almost) fine. Much better than just on Windows.
  • 0
    @LMagnus thank u. will try that
  • 1
    @JhonDoe to use it on WSL you need to install docker on Windows and on WSL. You then set an environment variable in WSL that tells docker to use the docker daemon on Windows.
  • 2
    @LMagnus ok man, that's it, working very cool nao. many thx :)
  • 1
    @JhonDoe brilliant, pleased to help 👍
Add Comment