Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got an error: [Errno 13] Permission denied: /app/data/'telegram_id' #32

Closed
urtaevS opened this issue May 7, 2024 · 2 comments
Closed
Labels
question Further information is requested

Comments

@urtaevS
Copy link

urtaevS commented May 7, 2024

Get error in docker run command
docker run \ -e TELEGRAM_BOT_TOKEN=token \ -v /home/gptbot:/app/data \ --name hiroshi \ pysergio/hiroshi:latest

@s-nagaev s-nagaev added the question Further information is requested label May 10, 2024
@s-nagaev
Copy link
Owner

@urtaevS Hi! You're trying to mount the whole home folder /home/gptbot inside the container. Are you sure this is what you're looking for? Typically, mounting the entire home directory of a user is not advisable.

I would recommend allocating a separate directory for the bot somewhere within the home directory and ensure that the user under whom the container is run has write permissions to this directory.

@urtaevS
Copy link
Author

urtaevS commented May 12, 2024

I think the problem is in root user in VPS, And I can configure it out how I need to bind folder.
Now I've just start the container without mapping folders.

@urtaevS urtaevS closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants