Some questions about Docker's use of maxexcloo/nginx-php

Source: Internet
Author: User
Tags docker run
I followed the following two commands as described by Maxexcloo

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

However, you still cannot access the server.

Excuse me
1. Does the first command create a data Contatiner? But shouldn't a data container be mapped to a local directory?
2. I can really see the/DATA directory structure in attach to nginx-php. It contains directories such as Conf,http, but they are empty. Nginx does not have normal access to the Conf directory is empty relationship?
3. How should I use this/data directory, such as modifying the configuration and placing the appropriate PHP files

The Docker environment is a boot2docker.iso that runs under VirtualBox because Vritualbox was installed so it did not download his managerment tools. I don't know if it has anything to do with.

Reply content:

I followed the following two commands as described by Maxexcloo

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

However, you still cannot access the server.

Excuse me
1. Does the first command create a data Contatiner? But shouldn't a data container be mapped to a local directory?
2. I can really see the/DATA directory structure in attach to nginx-php. It contains directories such as Conf,http, but they are empty. Nginx does not have normal access to the Conf directory is empty relationship?
3. How should I use this/data directory, such as modifying the configuration and placing the appropriate PHP files

The Docker environment is a boot2docker.iso that runs under VirtualBox because Vritualbox was installed so it did not download his managerment tools. I don't know if it has anything to do with.

Did the landlord solve it? I have also encountered this problem.

After the container nginx-php is built, a few directories, such as HTTP, will be created under/data/to enter directory HTTP, and the new index.php file will be accessible.

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