nginx-rtmp-monitoring icon indicating copy to clipboard operation
nginx-rtmp-monitoring copied to clipboard

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

Open v-7-3 opened this issue 3 years ago • 5 comments

./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 avatar Mar 02 '21 20:03 v-7-3

ubuntu 18.04

v-7-3 avatar Mar 02 '21 20:03 v-7-3

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

omar-haris avatar Mar 10 '21 07:03 omar-haris

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

a-poluyanov avatar Apr 01 '21 18:04 a-poluyanov

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

smoxed avatar Jun 05 '21 20:06 smoxed

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)

rubengargar avatar Feb 07 '22 12:02 rubengargar