From a74fc9a9c40fca0f2bbe5645b36126796e122d1a Mon Sep 17 00:00:00 2001 From: fazchow Date: Sun, 16 May 2021 07:47:14 +0200 Subject: [PATCH] Update django.md Added data folder that is created and the fact that we should not change its permission from root was made more explicit. --- samples/django.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/django.md b/samples/django.md index bc260b9a86..c25dd841cb 100644 --- a/samples/django.md +++ b/samples/django.md @@ -128,6 +128,7 @@ In this step, you create a Django starter project by building the image from the $ ls -l drwxr-xr-x 2 root root composeexample + drwxr-xr-x 3 root root data -rw-rw-r-- 1 user user docker-compose.yml -rw-rw-r-- 1 user user Dockerfile -rwxr-xr-x 1 root root manage.py @@ -137,9 +138,11 @@ In this step, you create a Django starter project by building the image from the If you are running Docker on Linux, the files `django-admin` created are owned by root. This happens because the container runs as the root user. Change the ownership of the new files. + + Do not change the permission of the data folder where Postgres has its file, otherwise Postgres will not be able to start due to permission issues. ```console - $ sudo chown -R $USER:$USER . + $ sudo chown -R $USER:$USER composeexample manage.py ``` If you are running Docker on Mac or Windows, you should already