Adding some more information and a link list to the Docker section

This commit is contained in:
Matthias Glaub
2014-11-01 23:54:10 +01:00
parent 0ebbb59538
commit 3a406c269b

View File

@@ -21,6 +21,22 @@ directory `/path/to/your/php/files` at `http://localhost:8080`:
docker run -d --name my-php-webserver -p 8080:80 -v /path/to/your/php/files:/var/www/html/ php:apache docker run -d --name my-php-webserver -p 8080:80 -v /path/to/your/php/files:/var/www/html/ php:apache
{% endhighlight %} {% endhighlight %}
After running `docker run` your container is initialized and running.
If you would like to stop or start your container again, you can use the provided name attribute and simply run
`docker stop my-php-webserver` and `docker start my-php-webserver` without providing the above mentioned parameters again.
### Learn more about Docker
The commands mentioned above only show a quick way to run an Apache web server with PHP support but there are a lot more
things that you can do with Docker.
One of the most important things for PHP developers will be linking your web server to a database instance, for example.
How this could be done is well described within the [Docker User Guide][docker-doc].
* [Docker Website][docker]
* [Docker Installation][docker-install]
* [Docker Images at the Docker Hub Registry][docker-hub]
* [Docker User Guide][docker-doc]
[docker]: http://docker.com/ [docker]: http://docker.com/
[docker-hub]: https://registry.hub.docker.com/ [docker-hub]: https://registry.hub.docker.com/
[docker-install]: https://docs.docker.com/installation/ [docker-install]: https://docs.docker.com/installation/
[docker-doc]: https://docs.docker.com/userguide/