From 03ae9d887ae46bef62cfd2b46c1d6b0836bea246 Mon Sep 17 00:00:00 2001 From: Angristan Date: Fri, 23 Mar 2018 14:34:01 +0100 Subject: [PATCH] Add permissions instructions for the data volume (#387) * Add permissions instructions for the data volume * Remove useless newline --- support/doc/docker.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/support/doc/docker.md b/support/doc/docker.md index e0c03a1dc..3d25d06c4 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md @@ -50,6 +50,18 @@ balancer, although any HTTP reverse proxy will work fine. See the example Nginx configuration `support/nginx/peertube` file to get an idea of recommendations and requirements to run PeerTube the most efficiently. +When starting the containers for the first time, you will get permissions errors for the data volume, like this one: + +``` +Error: EACCES: permission denied, mkdir '/data/logs' +``` + +The peertube user inside the container has a UID and GID of 991 so you have to change the folder's owner, in the case you're using `./data`: + +``` +chown -R 991:991 data/ +``` + **Important**: note that you'll get the initial `root` user password from the program output, so check out your logs to find them.