Home  >  Q&A  >  body text

docker-images - MacOS installed docker through boot2docker, but started nginx and could not find the nginx configuration file?

I passed:

boot2docker start Start docker

Run a container called web and install nginx
docker run --name web nginx

Type the IP and port of the virtual machine in the mac browser and find that the nginx service is successful

But I didn’t find the nginx software on mac or virtual machine

So where is the configuration file of ngixn?

天蓬老师天蓬老师2673 days ago1120

reply all(1)I'll reply

  • 学习ing

    学习ing2017-06-24 09:46:30

    boot2docker seems to rely on virtualbox, which is a bit complicated. I have done it once before....
    You should switch to the native mac version of docker

    reply
    0
  • Cancelreply