Some problems with using maxexcloo/nginx-php in Docker

Source: Internet
Author: User
According to maxexcloo, I executed the following two commands {code...} but still cannot access the server. 1. Did the first command create a datacontatiner? But shouldn't a datacontainer be mapped to a local directory? 2. attach to ngin... according to maxexcloo, I executed the following two commands:

docker run --name="nginx-php-data" maxexcloo/datadocker run --name="nginx-php" -it --volumes-from="nginx-php-data" -e VIRTUAL_HOST=example.com,www.example.com maxexcloo/nginx-php

But still cannot access this server.

Excuse me
1. Does the First Command create a data contatiner? But shouldn't a data iner be mapped to a local directory?
2. I attach to nginx-php to see the/data directory structure. It contains directories such as conf and http, but is empty. Does nginx fail to access the conf directory normally?
3. How should I use this/data directory, such as modifying the configuration and placing the corresponding PHP file?

The docker environment is boot2docker. iso running in virtualbox. Because vritualbox has been installed, its managerment tools has not been downloaded. I don't know if it is related.

Reply content:

According to maxexcloo, I executed the following two commands:

docker run --name="nginx-php-data" maxexcloo/datadocker run --name="nginx-php" -it --volumes-from="nginx-php-data" -e VIRTUAL_HOST=example.com,www.example.com maxexcloo/nginx-php

But still cannot access this server.

Excuse me
1. Does the First Command create a data contatiner? But shouldn't a data iner be mapped to a local directory?
2. I attach to nginx-php to see the/data directory structure. It contains directories such as conf and http, but is empty. Does nginx fail to access the conf directory normally?
3. How should I use this/data directory, such as modifying the configuration and placing the corresponding PHP file?

The docker environment is boot2docker. iso running in virtualbox. Because vritualbox has been installed, its managerment tools has not been downloaded. I don't know if it is related.

Has the landlord solved the problem? I also encountered this problem.

After the nginx-php container is created, several directories, such as http, will be created under/data/. Go to the http directory and create the index. php file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.