I bought Raspberry Pi 4 because I wanted to learn about Docker, so I installed the 64-bit version of Raspberry Pi OS. I got stuck a little when installing docker-compose, so I will record it easily.
Raspberry Pi4 Model B (RAM4GB), Raspberry Pi OS (64 bit) beta test version burned with Etcher microSD I inserted the card.
$ uname -srv
Linux 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020
The initial settings were made before the following work.
Install using the script written at the bottom of Docker official website procedure.
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
Procedure of Docker official site Install using pip described in Alternative Install Options, but if it is as it is, c / _cffi_backend. c: 15:10: fatal error: ffi.h: There is no such file or directory
and so on and it fails.
So install libffi-dev first.
$ sudo apt install libffi-dev
After installing libffi-dev, you can install docker-compose with pip3.
$ sudo pip3 install docker-compose
Confirm that it is installed.
$ docker-compose version
docker-compose version 1.26.2, build unknown
docker-py version: 4.2.2
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.1.1d 10 Sep 2019
Recommended Posts