From dd5891e61189fc4bf4ae882bbc9ea3280d529695 Mon Sep 17 00:00:00 2001 From: lipido Date: Thu, 5 Oct 2023 11:34:52 +0200 Subject: [PATCH] Adds powershell command line to start server --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 3991010..9881213 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,19 @@ Inside `my-web-project/www` you place your web files. # Running the server Go to your web project directory (e.g., `my-web-project`) and run: + +### On Linux (bash) ``` docker run -it -e APACHE_ROOT=www -e PHP_DISPLAY_ERRORS=On \ -e DOCKER_USER_ID=`id -u \`whoami\`` -p "80:80" -v ${PWD}:/app \ -v ${PWD}/mysql:/var/lib/mysql --name lampserver-1 --rm lampserver ``` +### On Windows (powershell) +``` +docker run -it -e APACHE_ROOT=www -e PHP_DISPLAY_ERRORS=On -p "80:80" -v ${PWD}:/app -v ${PWD}/mysql:/var/lib/mysql --name lampserver-1 --rm lampserver + +``` + `lampserver-1` is the name of the docker *container*, i.e., a running instance of the `lampserver` image. -- 2.18.1