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.