0 votes
1 view
in Devops and Agile by (28.1k points)

I am trying to install docker-compose on my system and I am getting the following error. Please help me in solving this issue.

$ sudo chmod +x /usr/local/bin/docker-compose

$sudo docker-compose --version

/usr/local/bin/docker-compose: 8: /usr/local/bin/docker-compose: Syntax error: newline unexpected

1 Answer

0 votes
by (48k points)
edited by

Try to run the below command:

sudo curl -L -o /usr/local/bin/docker-compose

Refer to this link GitHub.

sudo chmod +x /usr/local/bin/docker-compose 

Hope this helps. 

For more information, check out this git tutorial.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !