Skip to content

Doctor's AppPath might be different when run inside Docker #14468

Closed
@CirnoT

Description

@CirnoT

I run gitea with this command:

docker run -d --restart=always --publish 3000:3000 \
--publish 22:22 --network gitea \
-v /opt/gitea:/data \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
-e USER_UID=1218 -e USER_GID=1218 \
-e GITEA_WORK_DIR=/data/gitea -e GITEA_CUSTOM=/data/gitea/custom \
--name=gitea gitea/gitea:latest

The AppPath is /app/gitea/gitea and such is written to authorized_keys, however when executing docker exec -ti gitea su git bash -c "cd /data/gitea/log && gitea doctor" the AppPath is /usr/local/bin/gitea. This issue leads to doctor always complaining that authorized_keys is out of date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/distributionThis PR changes something about the packaging of Giteatype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions