• traches@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    49
    ·
    1 day ago

    People don’t actually do this, right? Docker inside docker inside a VM inside another VM? On windows? Right???

    • dan@upvote.au
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      I’ve ran Docker in LXC in a KVM before. I used LXC to have multiple containers on a VPS. Then I had to run something that works best with Docker, so I stuck Docker in an LXC.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 hours ago

        Windows itself is technically running in a VM if you have Hyper-V enabled (not quite that simple, but that’s a reasonable approximation). Hyper-V is a type 1 hypervisor which means it runs directly on the underlying physical hardware, and both Windows as well as any VMs you create are running on top of Hyper-V.

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      14
      ·
      22 hours ago

      Isnt that exactly what minikube is? Kubernetes in docker.

      I’ve used docker-in-docker images, but its usually not fun.

          • twei@discuss.tchncs.de
            link
            fedilink
            arrow-up
            1
            ·
            19 minutes ago

            Using Docker in a VM on a Hypervisor is industry standard, using docker inside of docker may be okay for CI purposes but I wouldn’t do anything more than that in production if it’s not necessary.

            The stack from the image above (Windows>WSL> Docker>Minikube>Docker>App) is something you’d use on a dev machine (not a “real”, production-like test environment), in which case you don’t really care about the performance loss