# docker-compose - "FATAL:  role "root" does not exist"

**URL:** <https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450>\
**Category:** AWX Project\
**Created:** [May 4, 2018, 5:18am UTC](https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450 "2018-05-04T05:18:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KenJ](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KenJ](https://forum.ansible.com/u/KenJ)\
**Post date:** [May 4, 2018, 5:18am UTC](https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450/1 "2018-05-04T05:18:56Z")

</div>

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](https://forum.ansible.com/uploads/short-url/jXQ2Jemr4jt3FrsNKlQEP65ag6j.yml) (2.56 KB)

---

<div class="post-metadata">

**Author:** ![Sebastien\_PERIN](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Sebastien\_PERIN](https://forum.ansible.com/u/Sebastien_PERIN)\
**Post date:** [May 4, 2018, 9:19am UTC](https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450/2 "2018-05-04T09:19:11Z")

</div>

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](https://docs.docker.com/install/linux/linux-postinstall/) to “Manage Docker as a non-root user”

---

<div class="post-metadata">

**Author:** ![KenJ](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KenJ](https://forum.ansible.com/u/KenJ)\
**Post date:** [May 4, 2018, 4:41pm UTC](https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450/3 "2018-05-04T16:41:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![KenJ](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KenJ](https://forum.ansible.com/u/KenJ)\
**Post date:** [May 4, 2018, 9:39pm UTC](https://forum.ansible.com/t/docker-compose-fatal-role-root-does-not-exist/27450/4 "2018-05-04T21:39:03Z")

</div>

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
