Chapter 2 creating superuser in Linux (root vs current user)
Closed this issue · 0 comments
mecrews commented
For linux users this might be an issue:
When using pipenv shell I am able to create a superuser and successfully log into the 127.0.0.1:8000/admin portal.
However when using docker-compose exec I am able to create a superuser but unable to log in to the admin portal.
The issue is when using pipenv shell, the command is run by the current user but when using docker-compose exec it's run by root.
I have added myself to a new group docker to run docker as the current user.
I do not have a working solution yet so bringing it up here.
(I was hoping docker-compose exec -u ... would work but it returns nothing so wasn't successful.)
Thank you,
Matthew