Why we should not use "Sudo tutor local quickstart"?

Hi @regis I hope you great and enjoying your day.

just wanted to ask why we should not use “sudo tutor local quickstart”. I understand that there will be some issue with system security but what if I am running this on my local system only?

Also, please tell me if I can’t use this command then what is the alternative for this, because this is the only thing is working with system.

Waiting for your response.

Thanks & regards,
Swetabh Suman

Hi @Swetabhsuman8! Technically speaking, it’s quite possible to run tutor with sudo, but it’s strongly not recommended. It’s like crossing the Pacific in a car: you can do it, but you’re going to face many unexpected problems. From the top of my head, you’re going to face permission problems with the local edx-platform repo, and it’s going to be quite confusing to manage platform settings.

Instead, what you should do is to grant the right to run docker to your local (non-root) user. To do so, all you need to do is to add your user to the docker group: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user

sudo usermod -aG docker $USER

That’s easy enough, right?

1 Like

Try this one :
sudo chown $USER /var/run/docker.sock
can be useful
Regards,
Murat

:sob:

This topic is susceptible to generate many incorrect answers, like the one above. I’m going to close it now. If you have further Docker permission issues, please refer to StackOverflow.