xmidt-org / xmidt

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

Unable to run deploy.sh for docker-compose #56

Open karthika-ab opened 3 years ago

karthika-ab commented 3 years ago

We are not able successfully run the deploy.sh as the following error is seen:

[root@osboxes docker-compose]# /xmidt/deploy/docker-compose/deploy.sh /xmidt /xmidt/deploy/docker-compose Building Simulator... /xmidt/deploy/docker-compose Running services... unknown shorthand flag: 'f' in -f See 'docker --help'.

Usage: docker [OPTIONS] COMMAND

It is coming from line 22: docker compose -f $ROOT_DIR/deploy/docker-compose/docker-compose.yml up -d $@

It works fine after changing it to : docker-compose -f $ROOT_DIR/deploy/docker-compose/docker-compose.yml up -d $@

Sachin4403 commented 3 years ago

Hi @karthika-ab, Can you try to upgrade your Docker CLI then it should work.

Sachin4403 commented 3 years ago

I am using docker desktop 3.3.3(64133) and it is working fine for me. image

karthika-ab commented 3 years ago

hi @Sachin4403 , I am using docker in a Centos 7 linux machine ,with following versions for docker and docker-compose:

[root@osboxes ~]# docker --version
Docker version 20.10.7, build f0df350
[root@osboxes ~]# docker-compose --version
docker-compose version 1.26.2, build eefe0d31
[root@osboxes ~]#

I am already at the latest release for docker engine .I have also tried installing same docker engine version and compose version ,not able to resolve the error

karthika@karthika-VirtualBox:~$ docker --version
Docker version 20.10.6, build 370c289
karthika@karthika-VirtualBox:~$ docker-compose version
docker-compose version 1.29.1, build c34c88b2
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019
karthika@karthika-VirtualBox:~$ docker compose
docker: 'compose' is not a docker command.
See 'docker --help'
karthika@karthika-VirtualBox:~$