kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.94k stars 492 forks source link

'docker-compose ...' is now 'docker compose ...' and has different syntax #1241

Closed nargetdev closed 1 year ago

nargetdev commented 1 year ago

Title says it all.

Perhaps install compose plugin should be added to the setup.sh

sudo apt-get install docker-compose-plugin

... somewhere in

sudo /bin/bash ./setup.sh dependencies

kizniche commented 1 year ago

docker-compose-plugin can't be found on my Ubuntu 22.04.1 LTS. Is this experimental?

wingsergey commented 1 year ago

It is not experimental. They bundled compose into docker some time ago. So now on https://docs.docker.com/compose/install/ Earlier https://docs.docker.com/compose/install/other/

kizniche commented 1 year ago

docker-compose-plugin is not available in Ubuntu 20.04, so it suggests it may be on the experimental branch.

wingsergey commented 1 year ago

It requires to setup repository to be available in Ubuntu https://docs.docker.com/engine/install/ubuntu/#set-up-the-repository But if you already have Docker Desktop installed then it is already available as docker compose

In such way you do not need to use old syntax and do not need to install this https://docs.docker.com/compose/install/other/

kizniche commented 1 year ago

The two files this PR references no longer exist, so I'll make the changes after I successfully complete some more testing.