Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k 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 (50.2k 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.

Related questions

Browse Categories

...