From 3a406c269ba80709d1399e481e10fdb8a4844a11 Mon Sep 17 00:00:00 2001 From: Matthias Glaub Date: Sat, 1 Nov 2014 23:54:10 +0100 Subject: [PATCH] Adding some more information and a link list to the Docker section --- _posts/13-03-01-Docker.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_posts/13-03-01-Docker.md b/_posts/13-03-01-Docker.md index f7792f5..36fa829 100644 --- a/_posts/13-03-01-Docker.md +++ b/_posts/13-03-01-Docker.md @@ -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 {% 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-hub]: https://registry.hub.docker.com/ [docker-install]: https://docs.docker.com/installation/ +[docker-doc]: https://docs.docker.com/userguide/