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

Chapter 2 creating superuser in Linux (root vs current user) #98

Closed
mecrews opened this issue Apr 9, 2021 · 0 comments
Closed

Chapter 2 creating superuser in Linux (root vs current user) #98

mecrews opened this issue Apr 9, 2021 · 0 comments

Comments

@mecrews
Copy link

mecrews commented Apr 9, 2021

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

@mecrews mecrews closed this as completed Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant