From 5b26dd0f4a0c9241faba55f8ebfd99e09c305530 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 3 Apr 2017 18:06:54 +0200 Subject: [PATCH] Update config to reflect the local user being member of the docker group and then no longer requiring sudo --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1bbcf43..f53bb4d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Your development workstation needs to be prepared once, so that Docker and its c ```bash sudo groupadd -r -g 82 www-docker sudo usermod -a -G www-docker $(id -un) + sudo usermod -a -G docker $(id -un) # logout and re-login again to make these changes effective ``` @@ -49,14 +50,14 @@ This will install and configure all required files so that you can launch your D ```bash cd /path/of/project/root -sudo docker-compose up -d +docker-compose up -d ``` ### Stopping the Docker containers ```bash cd /path/of/project/root -sudo docker-compose stop +docker-compose stop ``` ### Access the services @@ -82,10 +83,10 @@ By default, PHP is configured with XDebug being enabled and you should check the Each service (nginx, php, db, etc.) provides their own logs and it is very easy to access them: ```bash -sudo docker logs [NAME] -f +docker logs [NAME] -f ``` -Each service has their own container name and to get a list of all available name you should use `sudo coker ps`. +Each service has their own container name and to get a list of all available name you should use `docker ps`. ### Direct access to your database -- GitLab