mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #437] docker-compose running as root #293
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#293
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 @jkonrath on GitHub (Aug 11, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/437
I'm trying out docker-compose and it's running as root, which gives me an error.
I.e.
Adding
ALLOW_ROOT=Trueto mydocker-compose.ymldidn't do anything.Also, a few nitpicky doc things on https://github.com/pirate/ArchiveBox/wiki/Docker:
exec -T archivebox /bin/archive- should that last bit bearchivebox add?http://127.0.0.1:8080- should be8000@coisnepe commented on GitHub (Aug 12, 2020):
Running into this issue as well. Did you make any progress?
@jkonrath commented on GitHub (Aug 12, 2020):
(Edit: this doesn't work. See my later comment.)
Haven't had time to try this, but according to https://dev.to/acro5piano/specifying-user-and-group-in-docker-i2e this might be a workaround:
docker-compose.yml:user: "${UID}:${GID}"@cdvv7788 commented on GitHub (Aug 12, 2020):
What os are you using? It is happening to me on macos...just want to confirm it happens in linux too.
@jkonrath commented on GitHub (Aug 12, 2020):
I'm also macos. (10.15.4)
@cdvv7788 commented on GitHub (Aug 12, 2020):
Try running
echo "https://example.com" | docker-compose run -T archivebox addAlso, check your
docker-compose.ymlfile, and make sure you are using a locally built image or make sure you are actually pulling thelatestand not using a local version (rundocker-compose pulljust in case).Run:
docker build -t archivebox .Change (docker-compose.yml):
image: archiveboxAnd then run:
echo "https://example.com" | docker-compose run -T archivebox addThe
runcommand uses thedocker-entrypoint, which takes care of adjusting the permissions for the specific user to run as. The docs definitely need some love.@jkonrath commented on GitHub (Aug 12, 2020):
That works!
What I ended up doing was changing the docker-compose.yml as you said for a local build, then built locally and it was fine. No need for setting the user. (I actually tried setting the user and that fails.)
(One minor problem: https://example.com doesn't actually exist. :) http works. That tripped me up for a minute...)
I can help with docs when I get some time, maybe this weekend. I'll take a pass and send a pull request when I get a chance.
@cdvv7788 commented on GitHub (Aug 12, 2020):
Weird...
httpsworks for me. That is a different issue tho. Glad it worked!