xmidt-org / xmidt

Highly scalable pipes for communicating with devices all over the place.
Apache License 2.0
17 stars 19 forks source link

Facing version issue when trying to run docker-compose deploy script #70

Open LakshmipriyaPurushan opened 1 year ago

LakshmipriyaPurushan commented 1 year ago

Hi , We are setting up WEBPA using docker-compose using the steps mentioned from https://github.com/xmidt-org/xmidt/tree/master/deploy/docker-compose.

When running the script, facing the below error. `deploy/docker-compose/deploy.sh scytale talaria ~/webpa/WEBPA_DOCKER/xmidt ~/webpa/WEBPA_DOCKER/xmidt Building Simulator... Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=xmidt%2Fsimulator%3Alatest&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied ~/webpa/WEBPA_DOCKER/xmidt Running services... ERROR: Version in "webpa/WEBPA_DOCKER/xmidt/deploy/docker-compose/../..//deploy/docker-compose/docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under theserviceskey, or omit theversion` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ ~/webpa/WEBPA_DOCKER/xmidt$ sudo deploy/docker-compose/deploy.sh scytale talaria

Could you please help us on this issue.

Docker compose yaml file is having the version 3.8. Is there any version restriction?