Docker Community Forums

Share and learn in the Docker community.

Command option not run as root

Hi guys,

I have this command defition on my docker-compose.yml:

command: >
      bash -c " /home/app/ db:3306
      && python collectstatic --noinput
      && python migrate
      && python runserver"

My problem:

My command not executed as root user, the command executed with my current session user, throwing this error:

api_1 | bash: /home/app/ Permission denied

When a make a echo $USER i seeing my own username not a docker root user.

Any help?