Page 1 of 1

Docker + Docker-compose

Posted: Sat Aug 25, 2018 9:07 pm
by DarkSlave
New to DietPi. Using a Rock64 with DietPi

Selected ONLY the following list of softwares:
  • [162] Docker
  • [xx0] openSSH
  • [xx3] MC
  • [x12] Iperft
  • [x17] Git Client
Did the config for the Rock64, localisation, network, mount some drives, and several reboots later, done.

Trying to install: docker-compose with no luck.

Code: Select all

sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
a simple:

Code: Select all

docker-compose --version
leads to:

Code: Select all

/usr/local/bin/docker-compose: line 1: Not: command not found
Can't install Dockers as, well, docker-compose is not working. What gives?

TIA

Re: Docker + Docker-compose

Posted: Wed Sep 12, 2018 8:44 am
by shred
Were you ever able to figure this out? I just recently started messing around with Docker and thinking about switching my current RPi 3 setup to using Docker. I’ll mess around with it tomorrow to see if I can get docker-compose to work. It would be nice if we could get Docker-Compose as a part of dietpi-software.

Re: Docker + Docker-compose

Posted: Wed Sep 19, 2018 11:07 pm
by Adr3nal1n
Hi,

I don’t have a rock64 yet, am waiting for it to be delivered.

Regarding your issue, have you tried this....

Code: Select all

# apt-get install -qy python-pip --no-install-recommends
# pip install pip --upgrade
# pip install docker-compose

Re: Docker + Docker-compose

Posted: Mon Oct 01, 2018 11:46 pm
by Adr3nal1n
In reply to my previous post. Trying to install via pip threw some errors and failed.

Instead do a "sudo apt install docker-compose" and it will install v18 of docker-compose. Just remember to specify services version 2 in your docker-compose.yml file rather than version 3 otherwise docker-compose will fail to bring up your services.

Hope this helps in some way.

Re: Docker + Docker-compose

Posted: Fri Oct 19, 2018 4:11 pm
by jarlave
Hi,

that error

Code: Select all

/usr/local/bin/docker-compose: line 1: Not: command not found
is because there is no armv7l in the official github repo and the file that is create has only "Not Found." in it.

use this if you want a newer version

Code: Select all

sudo curl -L "https://github.com/javabean/arm-compose/releases/download/1.21.2/docker-compose-Linux-armv7l" -o /usr/local/bin/docker-compose

Re: Docker + Docker-compose

Posted: Wed Aug 28, 2019 11:03 am
by Jozek
Can someone install it on rock64?

Re: Docker + Docker-compose

Posted: Thu Jan 02, 2020 12:41 pm
by mujkar4e
jarlave wrote: Fri Oct 19, 2018 4:11 pm Hi,

that error

Code: Select all

/usr/local/bin/docker-compose: line 1: Not: command not found
is because there is no armv7l in the official github repo and the file that is create has only "Not Found." in it.

use this if you want a newer version

Code: Select all

sudo curl -L "https://github.com/javabean/arm-compose/releases/download/1.21.2/docker-compose-Linux-armv7l" -o /usr/local/bin/docker-compose
It worked for me!