Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karthika-ab opened this issue Jul 1, 2021 · 3 comments
Open

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

karthika-ab opened this issue Jul 1, 2021 · 3 comments

Comments

@karthika-ab
Copy link

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
Copy link

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

@Sachin4403
Copy link

Sachin4403 commented Jul 6, 2021

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

@karthika-ab
Copy link
Author

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:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants