Docker + Docker-compose

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
DarkSlave
Posts: 6
Joined: Fri Aug 17, 2018 9:51 pm

Docker + Docker-compose

Post 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
Rock64 4GB
Raspberry Pi3B+
Raspberry Pi3B (x2)
shred
Posts: 6
Joined: Wed Sep 12, 2018 8:40 am

Re: Docker + Docker-compose

Post 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.
Adr3nal1n
Posts: 10
Joined: Wed Sep 19, 2018 11:04 pm

Re: Docker + Docker-compose

Post 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
Adr3nal1n
Posts: 10
Joined: Wed Sep 19, 2018 11:04 pm

Re: Docker + Docker-compose

Post 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.
jarlave
Posts: 1
Joined: Fri Oct 19, 2018 4:06 pm

Re: Docker + Docker-compose

Post 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
Jozek
Posts: 7
Joined: Wed Apr 11, 2018 12:52 am

Re: Docker + Docker-compose

Post by Jozek »

Can someone install it on rock64?
mujkar4e
Posts: 2
Joined: Sun May 20, 2018 2:42 pm

Re: Docker + Docker-compose

Post 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!
Post Reply