So I'm trying to deploy a Django app on Minikube. But in one of the containers, the image requires me to be in root
for certain tasks and then switch the postgres
user to create some databases and then switch back to root
to run more commands.
I know I can use the USER
functionality for Docker but that messes up certain task depending on what user I'm in. I have also tried running su - postgres
but that returns an error saying that the command has to be from the terminal.
Any thoughts on how to fix this?