ct-Smart-Home icon indicating copy to clipboard operation
ct-Smart-Home copied to clipboard

start.sh uses ‚docker compose‘ instead of ‚docker compose‘

Open RRFfm opened this issue 2 years ago • 3 comments

I use ‚Compose V2‘ on my device, so ‚docker-compose’ ist not available and the script fails. As a quickfix, I changed all ‚docker-compose‘ to ‚docker compose‘.

RRFfm avatar Oct 07 '22 16:10 RRFfm

As a workaround you might as well create an executable file /usr/local/bin/docker-compose on the docker host with the following content:

#!/bin/sh

/usr/bin/docker compose "$@"

rsplaul avatar Dec 09 '23 12:12 rsplaul

As a workaround you might as well create an executable file /usr/local/bin/docker-compose on the docker host with the following content:

#!/bin/sh

/usr/bin/docker compose "$@"

After that, if you got permission problems, do this: sudo chmod +x /usr/local/bin/docker-compose

Darth-Carrotpie avatar Jul 29 '24 18:07 Darth-Carrotpie

Then if you still have problems with docker permissions, i.e. I had this being thrown: permission denied while trying to connect to the Docker daemon socket...<....>


Solved it using reply for this SO post

  1. Create the docker group if it does not exist

$ sudo groupadd docker

  1. Add your user to the docker group.

$ sudo usermod -aG docker $USER

  1. Log in to the new docker group (to avoid having to log out / log in again; but if not enough, try to reboot):

$ newgrp docker

Darth-Carrotpie avatar Jul 29 '24 18:07 Darth-Carrotpie