mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #250] Docker: Permission denied: /data/sources #1682
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1682
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jul 1, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/250
I'm pretty much just doing this:
Which gives me:
Debian 9. If I give global write access to /srv/webarchive, it works. Not too sure how permission handling is supposed to work in Docker in this case. Could you point me in the right direction?
Thank you!
@pirate commented on GitHub (Jul 5, 2019):
This is a common problem encountered with all docker setups and is unfortunately not solvable at the archivebox level. The reason is that the user inside the container needs to match the user outside the container in order for the permissions to work. One trick for bypassing the problem is to not create
/src/webarchiveyourself, but rather just make sure the parent directory exists, and let docker create the child directory with the correct permissions on first run.You can also fix the permissions manually after it's already been created by chowning the folders on the host so that the container user has permission to write to them again. Here are some guides that go into more detail:
https://medium.com/@nielssj/docker-volumes-and-file-system-permissions-772c1aee23ca
https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
@ghost commented on GitHub (Jul 5, 2019):
Thank you!