Home  >  Q&A  >  body text

macos - mac 下 docker 配置 lamp 环境求助

之前 mac 下都是用的 mamp 或者自己搭建 lamp 环境
最近重装了系统, 考虑学习下 vagrant 和 docker
不知道有没有推荐的配置教程推荐

是不是 mac 下使用 docker 必须需要 vagrant ?我看安装教程下有个 boot2docker 可以不用 vagrant?哪个好呢?

阿神阿神2710 days ago825

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-21 10:59:00

    boot2docker is actually a VM management tool similar to vagrant. There is a mac installation wizard on the docker official website. You can download the installation file of boot2docker and install it directly. There is no need to install vagrant. Although some people have also made boot2docker for vagrant. box, but that can only play docker in the vm, and you cannot use docker directly on your mac.

    After installing boot2docker, just use docker to pull a lamp image. You can take a look at this image. It has the highest download volume.

    For a comparison between docker and vagrant, you can look at this question on stackoverflow. The authors of vagrant and docker have discussed it above: should-i-use-vagrant-or-docker-io-for-creating-an-isolated-environment

    reply
    0
  • Cancelreply