# Docker + Docker-compose

**URL:** <https://dietpi.com/forum/t/docker-docker-compose/2504>\
**Category:** Troubleshooting\
**Created:** [25 August 2018 19:07 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504 "2018-08-25T19:07:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkSlave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/a698b9/32.png) [@DarkSlave](https://dietpi.com/forum/u/DarkSlave)\
**Post date:** [25 August 2018 19:07 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/1 "2018-08-25T19:07:19Z")

</div>

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.

```nohighlight
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:

```nohighlight
docker-compose --version

```

leads to:

```nohighlight
/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

---

<div class="post-metadata">

**Author:** ![shred](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@shred](https://dietpi.com/forum/u/shred)\
**Post date:** [12 September 2018 06:44 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/2 "2018-09-12T06:44:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adr3nal1n](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@Adr3nal1n](https://dietpi.com/forum/u/Adr3nal1n)\
**Post date:** [19 September 2018 21:07 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/3 "2018-09-19T21:07:17Z")

</div>

Hi,

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

Regarding your issue, have you tried this…

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

```

---

<div class="post-metadata">

**Author:** ![Adr3nal1n](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@Adr3nal1n](https://dietpi.com/forum/u/Adr3nal1n)\
**Post date:** [1 October 2018 21:46 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/4 "2018-10-01T21:46:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jarlave](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/j/ea666f/32.png) [@jarlave](https://dietpi.com/forum/u/jarlave)\
**Post date:** [19 October 2018 14:11 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/5 "2018-10-19T14:11:27Z")

</div>

Hi,

that error

```nohighlight
/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

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

```

---

<div class="post-metadata">

**Author:** ![Jozek](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/j/57b2e6/32.png) [@Jozek](https://dietpi.com/forum/u/Jozek)\
**Post date:** [28 August 2019 09:03 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/6 "2019-08-28T09:03:55Z")

</div>

Can someone install it on rock64?

---

<div class="post-metadata">

**Author:** ![mujkar4e](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@mujkar4e](https://dietpi.com/forum/u/mujkar4e)\
**Post date:** [2 January 2020 11:41 UTC](https://dietpi.com/forum/t/docker-docker-compose/2504/7 "2020-01-02T11:41:25Z")

</div>

> [@](#):
>
> Hi,
> 
> that error
> 
> ```plaintext
> /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
> 
> ```plaintext
> 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!
