I’m new to both Gitea and Docker, so I guess there is an easy fix to this issue. However, I’m stuck, so any help is appreciated.
Trying to backup my Gitea instance:
$ docker exec -u git -it -w /tmp $(docker ps -qf 'name=^gitea$') bash -c '/data/gitea/conf/app.ini'
Getting the following error:
bash: line 1: /data/gitea/conf/app.ini: Permission denied
The .ini file in the container:
$ docker exec -t -i gitea /bin/bash
bash-5.1# ls -al /data/gitea/conf/
total 12
drwxr-xr-x 2 git git 4096 May 4 07:53 .
drwxr-xr-x 12 git git 4096 May 4 08:20 ..
-rw-r--r-- 1 git git 2480 May 4 07:53 app.ini
Any idea why I’m getting permission denied?