Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Error when installing chmod + x setup.sh && ./setup.sh #28

Open
v-7-3 opened this issue Mar 2, 2021 · 5 comments
Open

Error when installing chmod + x setup.sh && ./setup.sh #28

v-7-3 opened this issue Mar 2, 2021 · 5 comments

Comments

@v-7-3
Copy link

v-7-3 commented Mar 2, 2021

./setup.sh: 5: ./setup.sh: Syntax error: "(" unexpected
sed: -e expression #1, char 59: unterminated s' command sed: -e expression #1, char 73: unterminated s' command
sed: -e expression #1, char 75: unterminated s' command sed: -e expression #1, char 71: unterminated s' command
ERROR: Version in "./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 the services key, or omit the version 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/

@v-7-3
Copy link
Author

v-7-3 commented Mar 2, 2021

ubuntu 18.04

@omar-haris
Copy link
Owner

upgrade docker and docker-compose. its bug in docker it self.
check this maybe helping you.

https://stackoverflow.com/questions/42139982/version-in-docker-compose-yml-is-unsupported-you-might-be-seeing-this-error

@a-poluyanov
Copy link

a-poluyanov commented Apr 1, 2021

the same problem is observed on ubuntu, I have not found a solution yet
UPD: обновление docker-compose до самой последней версии не помогло

@smoxed
Copy link

smoxed commented Jun 5, 2021

This will fix it!

$ sudo apt-get remove docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

@rubengargar
Copy link

This will fix it!

$ sudo apt-get remove docker-compose $ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose $ sudo chmod +x /usr/local/bin/docker-compose $ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Not working on Docker 19.03.12 with Ubuntu 20.04 (Digital Ocean Droplet)

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

No branches or pull requests

5 participants