Install docker-compose on 64-bit Raspberry Pi OS

Introduction

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.

environment

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.

work

Docker installation

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

Install docker-compose

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

Install docker-compose on 64-bit Raspberry Pi OS
Install 64-bit OS (bate) on Raspberry Pi
Install Raspberry Pi OS (Raspbian)
Install OpenCV4 on Raspberry Pi 3
Install TensorFlow 1.15.0 on Raspberry Pi
Install ghoto2 on Raspberry Pi (memo)
Install OpenMedia Vault 5 on Raspberry Pi 4
VScode intellisense doesn't work on Raspberry Pi OS 64bit! (Python)
How to install NumPy on Raspberry Pi
pigpio on Raspberry pi
Cython on Raspberry Pi
Install cvxopt on 64bit Anaconda
Install tomcat 9 on Cent OS 8
Install pyenv on Raspberry Pi and version control Python
Introduced pyenv on Raspberry Pi
Use NeoPixel on Raspberry Pi
Create a partition and then install the Raspberry Pi OS
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Testing uart communication on Raspberry Pi
MQTT on Raspberry Pi and Mac
Install Adopt OpenJDK 11 on Cent OS 8
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment
Install Sphinx on Mac OS X
Install Scipy on Mac OS Sierra
OS setup with Raspberry Pi Imager
Try using ArUco on Raspberry Pi
OpenCV installation procedure on Raspberry Pi
Install mitmproxy on Mac OS X
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Power on / off Raspberry pi on Arduino
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Detect switch status on Raspberry Pi 3
L Chika on Raspberry Pi C #
Install pgmagick on Mac OS X 10.9
Build wxPython on Ubuntu 20.04 on raspberry pi 4
SSD swap operation check for Raspberry Pi OS 64bit β version
"Honwaka Notification Lamp" on Raspberry Pi Part 2
Detect "brightness" using python on Raspberry Pi 3!
Install matplotlib on OS X El Capitan
USB boot on Raspberry Pi 4 Model B
"Honwaka Notification Lamp" on Raspberry Pi Part 1
Enable UART + serial communication on Raspberry Pi
Adafruit Python BluefruitLE works on Raspberry Pi.
Accelerate Deep Learning on Raspberry Pi 4 CPU
Set swap space on Ubuntu on Raspberry Pi
Programming normally with Node-RED programming on Raspberry Pi 3
Use the Grove sensor on the Raspberry Pi
Run servomotor on Raspberry Pi 3 using python
"Honwaka Notification Lamp" on Raspberry Pi Part 3
Install ubuntu on 32bit UEFI Ultra Notebook
Working with sensors on Mathematica on Raspberry Pi
Build OpenCV-Python environment on Raspberry Pi B +
Detect temperature using python on Raspberry Pi 3!
Mount Windows shared folder on Raspberry Pi
Matrix multiplication on Raspberry Pi GPU (Part 2)
I installed OpenCV-Python on my Raspberry Pi
Working with GPS on Raspberry Pi 3 Python
Portable SSD expansion swap setting for Raspberry Pi OS 64bit β version
Why detectMultiScale () is slow on Raspberry Pi B +
Detect slide switches using python on Raspberry Pi 3!