Skip to content

Commit 0304361

Browse files
committed
menu: create volumes with current user
Most services won't explicitly create volumes/ -folder when added, hence Docker will create volumes as owned by root. This will later cause problems for build hooks trying to prepare directories. E.g. adding nextcloud later will fail with: Error running PreBuildHook on 'nextcloud' [Errno 13] Permission denied: './volumes/nextcloud' Creating volumes as part of the initial git-clone will ensure it's owned by the correct user.
1 parent 732889a commit 0304361

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#ignore data folders for containers
22
/services/
3-
/volumes/
43
/backups/
54
/.tmp/*
65
__pycache__

volumes/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is needed for the volumes-folder to be created with the correct
2+
# ownership as part of the initial 'git clone'.
3+
*

0 commit comments

Comments
 (0)