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.