Docker Community Forums

Share and learn in the Docker community.

Docker-compose as root vs docker-compose as non-root

I am having an error in a container when executing docker-compose as root.
No issue if I create an user and use sudo to run docker-compose.
The error inside the container is:

An error occurs (Could not find implementation class: org.janusgraph.diskstorage.inmemory.InMemoryStoreManager), retrying (7)

The docker-compose file I am trying to run is located here Docker-Templates/docker/thehive4-cassandra at main · TheHive-Project/Docker-Templates · GitHub

Normally I am using sudo to run docker-compose but in this case I am using a small distro for tests where there is only root and I would avoid create user, install sudo, give permissions, etc

Do you have any idea?