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
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