Ros2router[docker] in VM needs sudo permission

Hi ERC-team,

When we were doing docker compose up for the husarnet-ros2router inside the alloted VM, it shows the following error
$ permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Dros2router-compose%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied

This usually gets resolved if we run the docker compose up command with sudo, however when we ran it with sudo, it shows the following error:
$ Sorry, user team is not allowed to execute '/usr/bin/docker compose up' as root on team-65-shunya

Let us know how to proceed from here.

Thanking You
Manas
Team SHUNYA

Most of the Teams have faced this issue and it was being resolved on a case-by-case basis together with a Team as soon as they mentioned it.