Using the attached docker-compose.yml file, running a docker-compose up, I get the following errors over an over again in the logs:
postgres | FATAL: role “root” does not exist
(attachments)
docker-compose.yml (2.56 KB)
Using the attached docker-compose.yml file, running a docker-compose up, I get the following errors over an over again in the logs:
postgres | FATAL: role “root” does not exist
docker-compose.yml (2.56 KB)
I’ve no problem with the same docker-comppose.yml file
Who’s the user that runs your ‘docker-compose up’ command? Did you followed the docker-ce post installation steps here to “Manage Docker as a non-root user”
I was running the docker-compose up command as a non-root user.
sudo docker-compose up
The security warnings listed in the docker-ce post installation steps made me not want to add the non-root user to the docker group.
I went and added the non-root user to the docker group, as instructed in the post-installation doc.
sudo usermod -aG docker $USER
Same errors.
If I comment-out the “user: root” lines in the docker-compose file, the errors change to
django.db.utils.OperationalError: FATAL: role “awx” does not exist